Return to Home talk what is
May 18, 2012, 10:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Screen printed Specialty Gamer T-shirts NOW available to order!!  \:D/  Check out Video Game Girl and Video Game Guy showing off the goods!!
Home Help Search Login Register

Specialty Gamer on Facebook
Pages: [1]   Go Down
Print
Author Topic: Tab borders don't show up correctly in IE. [Fixed, thanks to drale]  (Read 1281 times)
0 Members and 1 Guest are viewing this topic.
Brian Moy
Friendly owner of Specialty Gamer
SpGa Veteran of Veterans
***
Standby, Humanoid Offline Standby, Humanoid Offline

Posts: 492



View Profile WWW
« on: April 20, 2008, 01:47 AM »

Yeah... I know the borders don't show right under IE.  They look fine however on EVERY OTHER browser.  On IE, the yellow borders on the right and left ends of the tabs are missing and instead there is just black empty space.  Black because that's the background color.

Originally, the forum is set by default to have nice pretty looking graphics for the tabs.  If you go to most forums, they do have a very nice graphical interface.  I purposely took out all the graphics and gave it a straight text look as I like it to look more simple.  Plus, I think it loads faster without all that GUI bloat.  I'm thinking of adding graphic tabs back in JUST so it will look correctly on all browsers.
drale
Jr. SpGa Member
**
Standby, Humanoid Offline Standby, Humanoid Offline

Posts: 43



View Profile WWW
« Reply #1 on: May 30, 2008, 01:02 AM »

One of my first guesses was that sometimes divs, cells, etc won't show right without something in them. I added   between the first and last cells of active and nonactive tabs and it showed up in IE.

Code: [Select]
<td class="maintab_first">&nbsp;</td>
You can also reduce the CSS for the tabs a lot. For the section I made changes the CSS was reduced from 55 lines and 936 char to 27 lines and 433 char. I found having the same width of 10px on all tabs didn't look any different in the browsers.

Here is my sandbox tested in IE 6 and Firefox 2.0.0.12. The CSS file contains two versions (noted by comments). One is little more repetitive but maybe easier to read, the other is consolidated version.

Consolidated version:

Code: [Select]
.mirrortab_first, .mirrortab_back, .mirrortab_last
{
    background: #808080;
    width: 10px;
    border-top: 1px solid #FFFF00;
}
.mirrortab_first{
    border-left: 1px solid #FFFF00;
}
.mirrortab_last
{
    border-right: 1px solid #FFFF00;
}
.mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
    background: #c0c0c0;
    width: 10px;
    border-top: 2px solid #FFFF00;
}
.mirrortab_active_first
{   
    border-left: 2px solid #FFFF00;
}
.mirrortab_active_last
{
    border-right: 2px solid #FFFF00;
}
Brian Moy
Friendly owner of Specialty Gamer
SpGa Veteran of Veterans
***
Standby, Humanoid Offline Standby, Humanoid Offline

Posts: 492



View Profile WWW
« Reply #2 on: May 30, 2008, 05:57 PM »

Thanks for the time of looking into that and the tips.  The tabs thing is really the biggest thing of now that is bugging me.  Gah, can't believe I didn't think of the non breaking space!   

The forum software I'm using, SMF is in my opinion sort of a pain to edit the code in the templates.  Its mostly in PHP as well which I am not so comfortable with.  So I try to edit as little as possible in there. 

I must admit CSS can drive me nuts.  I use TopStyle mainly and I know there was a ton of repetition in there.  I'm not yet comfortable doing CSS by hand.

I have your sample page open in a tab right now.  I'm sort of busy (and too stressed out ATM actually...) to do it right now, but I'll fix it in the next few days. 
Pages: [1]   Go Up
Print
 

Bookmark to: Facebook Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Slashdot Bookmark to: Yahoo Bookmark to: Google Bookmark to: Technorati Information What are these icons for?
and enter your address for a FREE Specialty Gamer bumper sticker!!!

Email:

Name:

Address fields are optional and used ONLY to send your free SpGa Gift. None of your info will be sold or shared. Privacy Policy

Address line 1:

Address line 2:

City, State and Zip Code:

Country: (if not USA)



Unsubscribe

Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!