CSS Problems (Image)

Soldato
Joined
20 Oct 2002
Posts
6,212
Location
UK
Hi guys,

im having problems with some tabs at the top of a web page in the VLE system Moodle:

heres how is displays in Firefox :

firefoxky4.jpg


and heres how it currently displays in Internet Explorer :

iexplorekz4.jpg


anybody got any ideas on how i can get it to display back in line ?!

Thanks,
 
Last edited:
Shoseki said:
VLE system Moodle?

virtual learning environment and the system is Moodle - http://moodle.org/

I'm coming at this as a complete noob looking at the code, the chap who did it is on holiday at the moment and im very new to CSS also :(
/***
*** Tabs
***/

.tabs {
width: auto;
margin-bottom: 15px;
border-collapse: collapse;
}

.tabs td {
padding: 0px;
}

.tabs .side {
width: 50%;
border-style: solid;
border-width: 0px 0px 1px 0px;
}

.tabrow {
border-collapse:collapse;
width:100%;
margin: 1px 0px 0px 0px;
}

.tabrow td {
padding:0 0 0px 14px;
border-style: solid;
border-width: 0px 0px 1px 0px;
}

.tabrow th {
display:none;
}
.tabrow td .tablink {
display:block;
padding:10px 14px 4px 0px;
text-align:center;
white-space:nowrap;
text-decoration:none;
}
.tabrow .last {
display:block;
padding:0px 1px 0px 0px;
}

.tabrow td.selected {
border-width: 0px;
}

i think thats the stuff thats styling the tabs

Cheers, fRostiE
 
Its the classic box model problem in IE. I am guessing the problem lies :

.tabrow td {
padding:0 0 0px 14px;
border-style: solid;
border-width: 0px 0px 1px 0px;
}

.tabrow td .tablink {
display:block;
padding:10px 14px 4px 0px;
text-align:center;
white-space:nowrap;
text-decoration:none;
}

Basically, somehow you have managed to get IE into quirksmode and it is rendering padding incorrectly.

I dunno off the top of my head how to fix :D have some of the same issues myself, which is why I code so strictly to avoid quirksmode...
 
if i change

.tabrow td .tablink {
display:block;
padding:10px 14px 4px 0px;
text-align:center;
white-space:nowrap;
text-decoration:none;
}

to

.tabrow td .tablink {
display:list-item;
padding:10px 14px 4px 0px;
text-align:center;
white-space:nowrap;
text-decoration:none;
}

i get this in Internet Explorer:

ooohvl6.jpg


hoping someone with more CSS help might have the key... this was just through random playing about
 
ive tried playing around with padding and margin but to no avail :(

not really sure what else to try now :( i've tried resetting the width twice within each element style too... no joy there either

fRostiE
 
all sorted guys

there was 2 lines of code in the anchor visited links which was knocking all of the tabs out of line

got despirate and started taking chunks out of the CSS and refreshing the page, when a chunk finally made a difference to the tabs i started taking smaller and smaller pieces out and finally got it down to two lines of code, which have now had abuse hurled at them and commented out

Thanks to those who helped :)
 
Back
Top Bottom