Jump to content

[SOLVED] Positioning CSS Div's


Warptweet

Recommended Posts

Not to the absolute center of the entire web page.

I meant center the entire divs on an x axis.

 

Sorry, lol =(

 

I tried using float: center; but it screwed everything up because I have 3divs connected to each other. Making them all centered made the rightnavigation div go below the other two.

Rather than us guessing any more, why don't you post a link to the online version of this code so we can see for ourselves.  Trying to debug oddments out of context and with no code just isn't working.

 

Explain what should be happening to what and where.

http://www.warptweet.com/v2

 

Look at it in Internet Explorer, then Firefox.

 

In Internet Explorer it is slightly different aligned on the x-axis than Firefox.

So in that case, I need a way to make it align automatically regardless of which browser.

Wartweet, you've done this before and it has driven you crazy. And it will continue to do so until you finally realize that you need to use a DOCTYPE if you want CSS to work for you.

 

Without a proper DOCTYPE, your web pages will NEVER look and behave the same in FF and IE.

 

You are creating "quirks mode" web pages.

 

You can't just start a web page with "<HTML>".

 

And since you are using xhtml style closed tags, use the xhtml DOCTYPE instead of just an <html> tag:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

 

Until you do, no one can help you because the css will not work properly.

Alright, I did that.

 

Fortunately enough, it now works fine in IE and Firefox.

Just in case I'm using an outdated version of IE, I'd appreciate anyone who tests it in IE and Firefox to see if theres any major difference in the centering of the layout.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.