- Jan 6, 2002
- 22,460
- 775
- 126
Created what I wanted for the layout in Photoshop, sliced it up in Imageready. created tables using the slices, everything is good. So I created some CSS div's formy content area and my buttons. this is the sample code
<style type="text/css">
div.content
{
position: REALTIVE; TOP: -450px; LEFT: 22px;
WIDTH: 680px;
TEXT-ALIGN: justify;
OVERFLOW: auto;
PADDING-RIGHT: 34px;
PADDING-LEFT: 0px;
FONT-WEIGHT: lighter;
FONT-SIZE: medium;
PADDING-BOTTOM: 2px;
MARGIN: 16px 2%;
COLOR: #000000;
PADDING-TOP: 5px;
FONT-FAMILY: 'Courier New', Courier, 'Times New Roman';
HEIGHT: 310px;
TEXT-DECORATION: none
}
div.back
{
position: relative; top: -429px; left: -182px;
}
div.forward
{
position: relative; top: -461px; left: 172px;
</style>
here's my problem, the div.content looks slightly different in IE & Firefox. the div.back & .forward also do. It's enough to make it look like crap in Firefox, and if I fix the CSS so everything lines up in Firefox, it looks off in IE. I read up on CSS but I don't know why I can't get it to look the same in both browsers. There has to be some sort of way to correct the way IE screwed up the CSS elements?
<style type="text/css">
div.content
{
position: REALTIVE; TOP: -450px; LEFT: 22px;
WIDTH: 680px;
TEXT-ALIGN: justify;
OVERFLOW: auto;
PADDING-RIGHT: 34px;
PADDING-LEFT: 0px;
FONT-WEIGHT: lighter;
FONT-SIZE: medium;
PADDING-BOTTOM: 2px;
MARGIN: 16px 2%;
COLOR: #000000;
PADDING-TOP: 5px;
FONT-FAMILY: 'Courier New', Courier, 'Times New Roman';
HEIGHT: 310px;
TEXT-DECORATION: none
}
div.back
{
position: relative; top: -429px; left: -182px;
}
div.forward
{
position: relative; top: -461px; left: 172px;
</style>
here's my problem, the div.content looks slightly different in IE & Firefox. the div.back & .forward also do. It's enough to make it look like crap in Firefox, and if I fix the CSS so everything lines up in Firefox, it looks off in IE. I read up on CSS but I don't know why I can't get it to look the same in both browsers. There has to be some sort of way to correct the way IE screwed up the CSS elements?