CSS alignment issues, IE vs Mozilla |
CSS alignment issues, IE vs Mozilla |
kakan |
Nov 18 2007, 06:18 PM
Post
#1
|
Group: Members Posts: 2 Joined: 18-November 07 Member No.: 4,350 |
I wrote my site previewing it in Mozilla, but when I looked at it in IE all the alignments were off.
I googled it and found another thread with the same problem: http://forums.htmlhelp.com/lofiversion/index.php/t3548.html I tried that but it didn't seem to help. Site adress is www.uppsalaekonomerna.com/uca/test Does anyone know what the problem might be? Thanks in advance. |
pandy |
Nov 18 2007, 06:27 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
Hej hopp!
I'm sorry to tell you, but it's way off in my version of gecko too. Same as in IE6 and Opera. |
pandy |
Nov 18 2007, 06:43 PM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
Make the code valid first.
http://htmlhelp.com/cgi-bin/validate.cgi?u...mp;warnings=yes Most of the errors are because you declare XHTML but write HTML. But there also seems to be problems with the table code and you use the same id twice. An id must be unique to the page. Obviously the absolute positioning screws up. Don't use AP when it isn't necessary. Are you trying to center blocks by giving them an offset from the left edge of the browser window? That'll work only if the browser window always is a certain size. Better not use AP like that. You could just stack the sections, one under the other and then center the whole things with margin or padding. No positioning needed. No tables needed. |
kakan |
Nov 18 2007, 06:52 PM
Post
#4
|
Group: Members Posts: 2 Joined: 18-November 07 Member No.: 4,350 |
Thanks for your help.
Changed the declaring bit. I used div twice becouse when I used it once it didn't work, and I guess you're right about the absolute positioning bit, just thought it would be easiest to do it that way, guess not How would i go about stacking them without using tables? Thanks a million again, was supposed to be finished with the site like yesterday |
Darin McGrew |
Nov 18 2007, 07:42 PM
Post
#5
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Our online validator still reports markup errors that indicate a number of structural problems.
Right now, you have the main background centered, but the nav bar and content are positioned relative to the left edge. They'll match up only at one specific browser width. You can center everything, or you can position everything relative to the left (or right) edge. But mixing the two modes causes problems. But it also looks like you're trying to position content over an area of the background image. That is a very fragile way to design a web page. |
Lo-Fi Version | Time is now: 21st May 2024 - 01:12 PM |