Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Bidding Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-18-2006, 06:14 PM   #1 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 349
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
Table Column Alternative?

Please take a look at my working project, www.fantasysportswiz.com. In the middle of the page, in the second section, there is a list where I want headlines to go. The thing is, I want it divided into two columns, one on the left and one on the right.

How should I do this? Div tags? I really dont want to use tables, but if thats the only way then I guess I have to.
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-18-2006, 11:20 PM   #2 (permalink)
Individualist
 
John Scott's Avatar
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,621
iTrader: 2 / 100%
John Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster materialJohn Scott is supreme webmaster material
Send a message via AIM to John Scott Send a message via Yahoo to John Scott
Why don't you want to udse Div tags?
John Scott is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-18-2006, 11:31 PM   #3 (permalink)
v7n Mentor
 
DaveyBoy's Avatar
 
Join Date: 10-13-03
Location: England.
Posts: 6,200
iTrader: 0 / 0%
Latest Blog:
None

DaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest order
Cos he's a div
DaveyBoy is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 08:06 AM   #4 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 349
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
No, i DO want to use div tag, i DONT want to use the table tags. How do I do this?
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 08:20 AM   #5 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,003
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
In style:
Code:
.column { float: left; width: 50%; }
In body:
Code:
<div class="column">left column</div> <div class="column">right column</div>
Pretty much. You will want to add some padding or margins. Play around with it.
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 09:16 AM   #6 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 349
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
Ok, we got closer.....but now how do I fix this...?

(please look I cant even describe)

http://www.fantasysportswiz.com
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 09:21 AM   #7 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,003
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Ah, my apologies. I forgot to clear.

After your two divs, put this:
Code:
<div style="clear: both;"></div>
But you may yet want to add padding. Here:
Code:
.column { float: left; width: 50%; padding: 6px; }
Feel free to add more padding. I don't know what you're going for in terms of spacing. Let me know if it turns out to your liking.
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 09:43 AM   #8 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 349
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
The div clear code worked perfectly, but now when I add padding, it misaligns the two columns so that the second column is pushed down a little.

It is perfect now, I just want more space between "Top Headlines" and "NFL Top Headlines"
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 09:49 AM   #9 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,003
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Code:
.column { float: left; width: 50%; padding: 12px 8px 0px 8px; }
Play around with padding. The order is: top right bottom left.

*edited*
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-19-2006, 09:51 AM   #10 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 349
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
Thanks

Last edited by devilzfan300 : 07-19-2006 at 09:55 AM.
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-25-2006, 08:32 PM   #11 (permalink)
Contributing Member
 
Join Date: 06-09-04
Posts: 349
iTrader: 0 / 0%
Latest Blog:
None

devilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nicedevilzfan300 is just really nice
Ok, I thought this was working fine, but I installed firefox, and it doesnt work. Please see the site (http://www.fantasysportswiz.com).
Edit: If you dont have firefox, shame on you. The problem is that instead of makin the second column on the right side, it puts it below the first one....
devilzfan300 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-25-2006, 10:02 PM   #12 (permalink)
Inactive
 
aryo's Avatar
 
Join Date: 09-26-06
Location: batavia
Posts: 93
iTrader: 0 / 0%
Latest Blog:
None

aryo is a jewel in the rougharyo is a jewel in the rougharyo is a jewel in the rougharyo is a jewel in the rougharyo is a jewel in the rougharyo is a jewel in the rough
decrease the width until it fits nicely. 40-45% should be fine.

edit: i'd have to admit it's pretty frustrating cuz padding is supposed to be between the element's border and its content. so logically, it doesn't make sense that adding padding would affect the element's width. it's not like we're defining a margin here.

Last edited by aryo : 11-25-2006 at 10:20 PM.
aryo is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Adding a column in .css idahoscuba Coding Forum 2 01-21-2008 02:48 AM
css column margin trouble I like pie Coding Forum 7 07-14-2007 09:42 PM
Showing data from a table based on infos from another table! anarchoi Coding Forum 0 06-16-2007 04:58 PM
display column sum waffles Coding Forum 3 07-04-2006 01:09 PM
How would I add a header to this 3 column CSS page? allreal Coding Forum 17 06-04-2006 07:51 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 01:51 AM.
© Copyright 2008 V7 Inc