Code:
#pscroller1{
width: 200px;
height: 100px;
border: 1px solid black;
padding: 5px;
background-color: lightyellow;
margin: 0 auto;
}
The above will work for all browsers. However, for IE to recognise this style's meaning, you must have a valid URL DOCTYPE of:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
or greater.
Depending upon the rest of your markup/layout, there could also be other issues. If you want more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks