Topic: CSS possitioning |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: # |
posted 06-19-2003 12:07
Please bear in mind i still have my 'L' plates attached but I am using the CSS layout template on http://glish.com/css/7.asp and within the banner DIV i am calling a ssi page which contains an image among other things, which I cant seem to Horizonally centre. I have searched and searched but cant get my head round how i can get the image centred via external an css file without using a table. |
Bipolar (III) Inmate From: # |
posted 06-19-2003 12:17
Background image maybe should display centretop? code: body
|
Maniac (V) Inmate From: Seoul, Korea |
posted 06-19-2003 13:33
There's some info on horizontal centering in CSS at bluerobot--maybe you'll find that useful. |
Bipolar (III) Inmate From: # |
posted 06-19-2003 16:02
thatks soho, i have looked at the bluerobot solutions but I can't work out how to get the content (i.e a gif) within a DIV to centre align properly and be xbrowser compatible. |
Maniac (V) Inmate From: Seoul, Korea |
posted 06-19-2003 16:05
Well, I must admit that I'm not really sure what you are talking about up there... perhaps a page to look at? |
Bipolar (III) Inmate From: # |
posted 06-23-2003 17:23
I'll try and post some code when it looks a little better. I think I should have mentioned that doc is coded XHTML strict and The "align" attribute of the div element is not supported in XHTML 1.0 Strict DTD. |
Maniac (V) Inmate From: under the bed |
posted 06-23-2003 18:29
For one thing you're missing a ';' after the background-postion line. |
Maniac (V) Inmate From: Seoul, Korea |
posted 06-24-2003 02:21
Actually, since the declaration with the missing semicolon is the last in the group, I don't think it should break--you can generally get away with leaving the semicolon off the last declaration, although it's a bad practice. |
Maniac (V) Inmate From: under the bed |
posted 06-24-2003 02:48 |