![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
in post <news:bu252c$cp3uq$1 (AT) ID-117621 (DOT) news.uni-berlin.de brucie said: whatever{text-align:center:} ^ oops ; |
#3
| |||
| |||
|
|
We haven't finalize our logo so we don't know the final width of the image. CSS is supposed to be about layout, not content, so the dimensions shouldn't come into play when defining the style sheet anyhow. that doesn't make sense |
#4
| |||
| |||
|
|
in post <news:B41Nb.84638$ts4.47054@pd7tw3no Noozer said: whatever{text-align:center;} Had to set Display: Block; to get it to work though. thats a bit odd, a div with text-align:center; will center an image without having to do anything else. |
#5
| |||
| |||
|
|
What I mean is that all the solutions that I found needed to know the dimensions of the image being centered, so the CSS was bound to the specific content, not just the page layout. CSS is supposed to be about layout, not content. |
|
The text-align works fine (although doesn't really make much sense, since this isn't text.) |
#6
| |||
| |||
|
|
brucie wrote: in post <news:B41Nb.84638$ts4.47054@pd7tw3no Noozer said: whatever{text-align:center;} Had to set Display: Block; to get it to work though. thats a bit odd, a div with text-align:center; will center an image without having to do anything else. I think he's using img { text-align: center; display: block; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |