Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

getting floated left divs to center in their container
 

BenOne©




quote this post edit post

IP Loged report this post

Old Post  08-24-04 - 12:19 AM  
Hi all,

I'm trying to create an image gallery with CSS but I can't get the thumbnail
s to
center horizontally as a group. The page, including css defined in the <HEAD
> is
located at:
http://homepages.ihug.com.au/~benst...s_problems.html

Please note there are only 2 thumbnails on the page so it won't bring your
internet connection to its knees.

I have to use float:left to get the borders of the thumbnails to shrink inst
ead
of stretching the full width of the page, but that seems to override the
text-align:left property of the parent container - and using <CENTER> doesn'
t
make a difference either.


Any pointers greatly appreciated.
--
Ben Thomas
Opinions, conclusions, and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.



Post Follow-Up to this message ]
Re: getting floated left divs to center in their container
 

Spartanicus




quote this post edit post

IP Loged report this post

Old Post  08-24-04 - 04:16 AM  
BenOne© <nosp@m.thanks.mate> wrote:

>I'm trying to create an image gallery with CSS but I can't get the thumbnai
ls to
>center horizontally as a group. The page, including css defined in the <HEA
D> is
>  located at:
>http://homepages.ihug.com.au/~benst...s_problems.html

This is currently not possible with CSS, it requires support for the CSS
2.1 "inline-block" value for the "display" property. Afaik only Opera 7
supports it, but it's support is buggy.

"inline-table" is a possible alternative, but UA support is little
better (Opera 4+ and probably Safari).

You could add the borders with a graphics editor, but that would extend
the linked region to include the borders, and you'd get jpg artifacts in
the borders.

The only way to achieve this layout is to resort to using tables:
http://www.spartanicus.utvinternet.ie/test/ben.htm

--
Spartanicus


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 03:26 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top