Forum Moderators: not2easy

Message Too Old, No Replies

aligning content

         

sionvalais

7:20 pm on Sep 13, 2003 (gmt 0)

10+ Year Member



I have a problem; I want to center the whole content for my site, so I use the body statement: text-align: center
works great everything is centered.
but the javascript menu is not rendered correctly in Opera 7.
it is declared in the head section, but Opera feels free to center the content of the menu according to the body statement. I can't configure it right in the menu itself so I have to find a way to align the content in another way.

cheers,

Mark

<Eeek!>

[edited by: Nick_W at 7:26 pm (utc) on Sep. 13, 2003]
[edit reason] no urls please / thanks! [/edit]

DrDoc

7:36 pm on Sep 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Declared in the head section, but used in the body, right? So, then it should also be centered.
Give the menu a class or id with CSS rules that override the ones declared for the body.

And, welcome to Webmaster World! :)

sionvalais

8:52 pm on Sep 13, 2003 (gmt 0)

10+ Year Member



no, cant put a div in a head-section.

The javascript is in the head.
Opera overrules the alignment in the menu according to the body text-align statement.

cheers,

Mark

DrDoc

12:38 pm on Sep 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then what is the problem? You have a div in the body section, but you don't want Opera to apply the CSS body rules since the JavaScript is declared in the head section? <confused>