WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2008, 10:25 AM
darren13's Avatar
darren13 darren13 is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: UK
Posts: 210
darren13 RepRank 0
Default CSS to layout images

Hi guys,

As you can see from this page - Shawn Randall | Artist Statement | www.sirandall.com I'm trying to get the images to be justified across the page.

I've tried working the css file (http://www.sirandall.com/Template.css) so that they display correctly, but I'm not having much luck, I can nearly get it but not quite!

Does anyone know of the right way to do this, or can you refer me to another article that details the required procedure?

Many Thanks,
Darren.
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:31 AM
james113's Avatar
james113 james113 is offline
WebProWorld Member
 

Join Date: Jun 2004
Location: Illinois
Posts: 51
james113 RepRank 0
Lightbulb Re: CSS to layout images

What do you mean by justify? Are you wanting the text to line up causing the center photo to rise higher or what? I would use inline css to fix the problem, whatever it may be, as inlined coding will override any external css file commands that may be desired elsewhere in the HTML document.
__________________
James Allen
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 05:29 PM
darren13's Avatar
darren13 darren13 is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: UK
Posts: 210
darren13 RepRank 0
Default Re: CSS to layout images

Hi James,

Sorry, I'm a bit lost there -

What I'd like to do, is have however many images are placed horizontally formatted to 'justified' so that the left-most image appears with it's left side on the left margin of the container and the right-most image appears with it's right side on the right margin of the 'container'. The images in the middle should be spread evenly. Pretty much the same as justified text really, but with images.

The trouble I have is that the image on the right, is not pushing all the way to the right. I've tried floating the images and setting different attributes such as -

text-align: justify;
float: left;
float: justify;

- but with no luck. I'm seriously thinking I might just have to go back to tables on this one - I'm either missing something, or CSS can't justify images. Hopefully it's the first one, as I'd really like to do this with CSS.

Any help would be great guys!

Darren.
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:43 PM
james113's Avatar
james113 james113 is offline
WebProWorld Member
 

Join Date: Jun 2004
Location: Illinois
Posts: 51
james113 RepRank 0
Default Re: CSS to layout images

I have found that the justify value can only be used with the text-align property. So looks like a table would serve you better. CSS does have it's limits. I wish there was a code that could do everything. Life would be so much easier.
__________________
James Allen
Reply With Quote
  #5 (permalink)  
Old 02-22-2008, 03:52 AM
speed speed is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 824
speed RepRank 1
Default Re: CSS to layout images

I'm not 100% certain I'm understanding what you want to create but anyway.

Create 3 <div>s 33% wide and all left floated. Then place your images within the divs.

On the left <div> add text-align: left, on the center text-align: center, and on the right text-align: right.

Alternatively, and this is what I think would be better, is to text-align: center on all the divs.

I've only used 3 images but if you have 10 images you'd use a width of 9.5% and so on.

Finally check the results in Firefox, IE6, IE7 etc.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory : Web Directory Script
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 05:27 AM
darren13's Avatar
darren13 darren13 is offline
WebProWorld Pro
 

Join Date: Jul 2003
Location: UK
Posts: 210
darren13 RepRank 0
Default Re: CSS to layout images

Hey Speedy,

Thanks for the tip - I've tried that out and it gets somewhere close - it's a good workaround, obviously hoping for the day that CSS can actually handle justifying images.

I've had to use a table to get the link text to spread right across, as 'justify' doesn't seem to like justifying text unless there's more than one line of text, as far as I can make out.

Thanks for the info again,

Darren.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invoiced from Getty Images for Unlawful Use of Images? danners02 Graphics & Design Discussion Forum 38 07-12-2008 09:09 AM
Site images or... Will my ranking falter if I change all my images? nipplecharms1 Google Discussion Forum 4 02-20-2008 12:06 PM
Web Layout WPW_Feedbot Graphics & Design Discussion Forum 0 02-08-2005 01:30 AM
Search engines spiders not indexing images for images search jay-jay Search Engine Optimization Forum 2 01-13-2005 05:20 PM
New layout? ergobob Graphics & Design Discussion Forum 3 08-30-2004 07:24 AM


Search Engine Friendly URLs by vBSEO 3.0.0