Topic: NN4 and centring Div's (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() Hi Guy's how's it going? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() You have to use the american-english spelling of "center" =) |
Nervous Wreck (II) Inmate From: |
![]() ooh, I didn't notice that! |
Paranoid (IV) Inmate From: France |
![]() Blaise: Depending on the mood of NN4 and the inner guts of your page, the negative margin hack may do the trick. For instance: code: #idOfYourDiv Hope that helps |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Poi: For a thing like horizontal centering, that might actually cause more troubles than it solves (vertical centering is mostly what it's good for, IMO). |
Maniac (V) Inmate From: under the bed |
![]() Before we give any more thought to this, one VERY important question: |
Nervous Wreck (II) Inmate From: |
![]() Perhaps one good reason is that I'm being told it has to? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() It's definitely possible with text-align:center . I think you have to apply it to the *containing* element, not the element you want to center. |