Click to See Complete Forum and Search --> : <div> width in Opera


spufi
10-27-2003, 10:13 AM
http://www.matts-website.net/
http://www.lauramccandliss.com/

Both sites I did are done pretty much in the same exact way, and they look the same in IE and Mozilla. However, I just checked them in the latest Opera and there is space on the right and left outer edges. It's not a big issue, but I was wondering why it was happening and what is needed to fix it.

Incase you are wondering, I know the height of the "colored line" div is different in Opera, but I already figured out the work around for it, and I just need to upload the new CSS file for the change to take place.

nkaisare
10-27-2003, 01:27 PM
Add:
body {padding: 0}

- niket

spufi
10-27-2003, 02:09 PM
I knew I read somewhere that you were supposed to use padding:0 in the body, but I couldn't remember why. I use it in stuff I work on now, but both of those sites where done around a year ago, so the padding wasn't defined in them. I even guessed about using padding:0 for a <ul> tag that looked different in Mozilla compared to IE and Opera and it worked for that as well. Sweet. Anyway, thanks.