Menu
hi guys,
can anyone help me out or point me in the right direction with regards to webpage layout across different browsers?
i have made my website – [url]www.deskjetmodels.co.nz
now how to i tweak my existing webpage so it will display well in both browsers?
and help, tips, past experiance would be much appriacated!!
here is one of the main css files –
[url]www.deskjetmodels.co.nz/css/model.css
[i]Originally posted by Css_Calav [/i]Now you know the importance of building websites that adhere to web standards. ?
[B]...designed it for IE6. now i downloaded mozilla firefox and when i veiw it it comes out all different.[/B][/QUOTE]
<i>
</i>/* IE-Win needs a bogus height or minor to major display problems occur */
* html #someID { height: 1px; }
/* End IE5-Mac hiding */
[i]Originally posted by Css_Calav [/i]You are doing the right thing by designing with css and xhtml but designing it for one browser where the mistake lies. ? Web standards will help you avoid that (besides browser compatibility is not a new thing that came along with css). I highly suggest the book mentioned above.
[B]i thought i was doing the right thing by designing my site with css xhtml etc. but now i have the problem of browser compatibility. [/B][/QUOTE]
[i]Originally posted by Css_Calav [/i]
[B]thanx, what would i need to do to fix this?
can you help me out for this one to get the ball rolling?
would be very useful if you can [/B][/QUOTE]
<i>
</i>#left {
width: 185px;
float: left;
}
.payment_pics{
float: left;
margin-top: 20px;
margin-left: 31px;
}
#navcontainer {
width: 185px;
}
#navcontainer ul {
margin: 0;
padding-top: 15px;
list-style-type: none;
font: bold 12px/19px Verdana, Arial, Helvetica, sans-serif;
text-indent: 30px;
letter-spacing: 1px;
}
#navcontainer a {
display: block;
width: 190px;
height: 10px;
}
#navcontainer a:link, #navcontainer a:visited {
background: url(/images/navbutton.gif);
color: #000000;
text-decoration: none;
}
#navcontainer a:hover {
background: url(/images/navbutton_over.gif);
color: #A5003B;
text-decoration: none;
}
#navcontainer li a#current {
background: url(/images/navbutton_over.gif);
color: #A5003B;
text-decoration: none;
}
First of all you have #navcontainer at 185px inside of left at 185px. Then you try to put a wider section inside of it (#navcontainer a is at 190px) so it is going to spill over to the right. Then on top of that you have the #navcontainer ul indented 30px (I assume for the airplane pic beside it when you rollover) which compounds the issue.[CODE]
#navcenter ul
{
font: bold 12px/14px Verdana, Arial, Helvetica, sans-serif;
text-align: left;
vertical-align: middle;
margin: 0;
padding: 0;
padding-left: 2.5em;
list-style-type: none;
border-bottom: 1px solid #665;
border-top: 1px solid #665;
}
#navcenter ul li {
display: inline;
}
#navcenter ul li a {
text-decoration: none;
padding: .2em 1em;
color: #000000;
}
#navcenter ul li a:hover {
color: #891C22;
}
#navcenter ul li a#current {
color: #891C22;
}
/* --- end center navigation --- */
/* --- left navigation --- */
#left {
width: 185px;
float: left;
}
.payment_pics{
float: left;
width: 90px;
margin-top: 10px;
margin-left: 31px;
}
#navcontainer {
width: 190px;
position: relative;
}
#navcontainer ul {
margin: 0;
padding-top: 15px;
list-style-type: none;
font: bold 12px/19px Verdana, Arial, Helvetica, sans-serif;
text-indent: 30px;
letter-spacing: 1px;
position: relative;
}
#navcontainer a {
display: block;
width: 190px;
height: 10px;
}
#navcontainer a:link, #navcontainer a:visited {
background: url(/images/navbutton.gif);
color: #000000;
text-decoration: none;
}
#navcontainer a:hover {
background: url(/images/navbutton_over.gif);
color: #A5003B;
text-decoration: none;
}
#navcontainer li a#current {
background: url(/images/navbutton_over.gif);
color: #A5003B;
text-decoration: none;
}
/* --- end left navigation --- */
[/CODE]
I used FF with the CSS editor in the Web Developer extension [/QUOTE]
Add that extension to your FF; [/QUOTE]
0.1.9 — BETA 5.27