Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Elements Evenly Distributed
Old 01-15-2009, 02:14 AM Elements Evenly Distributed
Skilled Talker

Posts: 90
Trades: 0
Can this be done with out some sort of script?

If not, can anyone recommend a good free or cheap script for this purpose?

thanks,
Shadrach
Shadrach is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-15-2009, 03:49 AM Re: Elements Evenly Distributed
NullPointer's Avatar
Will Code for Food

Posts: 2,784
Name: Matt
Location: Irvine, CA
Trades: 0
More details please. What sort of elements? How are you arranging these elements? Whats preventing them from being evenly distributed?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-16-2009, 12:27 AM Re: Elements Evenly Distributed
Skilled Talker

Posts: 90
Trades: 0
I am trying to create a web page that utilizes the entire screen for any screen size. I have a series of five buttons distributed below the banner and above the main content. I would like to distribute these five buttons evenly across this div. Except that the width of this div will expand and contract depending on screen size and resolution.

I found this link yesterday, but it didn't seem like a quick fix so I skipped it in hopes someone knew a quicker way.

Elements Evenly Distributed

Thanks,
Shadrach
Shadrach is offline
Reply With Quote
View Public Profile
 
Old 01-16-2009, 02:27 AM Re: Elements Evenly Distributed
NullPointer's Avatar
Will Code for Food

Posts: 2,784
Name: Matt
Location: Irvine, CA
Trades: 0
I suppose the quick and dirty way to do it would be to create a one row table, setting the width to 100% and then setting each column's width to 100%/(the number of columns). Don't forget to center your text.

I'm sure if you ask in the html or css forum you'll get a better answer than that and I'm sure in some cases the above won't work (like for example if the length of your button is greater than the column width)
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by NullPointer; 01-16-2009 at 02:28 AM..
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-16-2009, 01:15 PM Re: Elements Evenly Distributed
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Nooooooooooooo.. NO TABLES!!!

Shadrach, lets see your code. Floating the buttons SHOULD do the trick, but can't be certain w/o seeing your code.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-16-2009, 10:12 PM Re: Elements Evenly Distributed
Skilled Talker

Posts: 90
Trades: 0
The buttons are inline elements rather than box. They are not in a div of their own. I could give them each their own div.. But how would floating them help me? Whats to stop them from just floating up against each other?

Shadrach
Shadrach is offline
Reply With Quote
View Public Profile
 
Old 01-17-2009, 01:12 PM Re: Elements Evenly Distributed
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Ideally it would be better to put the buttons inside a list, float the list, float the buttons:

Here's the solution: http://icant.co.uk/sandbox/imageDistribution.html
Example here: http://icant.co.uk/sandbox/imageDistribution.html - view source to see the coding.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-17-2009, 09:31 PM Re: Elements Evenly Distributed
Skilled Talker

Posts: 90
Trades: 0
Thanks for the reply. That works if the images are all the same size. However mine are all different. I am giving up trying to create a page that goes across the screen. Just don't have the chops for it yet.

Thanks anyway,
Shadrach
Shadrach is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Elements Evenly Distributed
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40850 seconds with 12 queries