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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Displaying elements side-by-side without using tables
Old 04-06-2007, 06:41 PM Displaying elements side-by-side without using tables
Experienced Talker

Posts: 44
Name: English Hentai Team
Trades: 0
Lets imagine I have this code:
Code:
<div class='A'>
    <someSection class='B'>
        <nestedSection class='C'>
        </nestedSection>
        <nestedSection class='C'>
        </nestedSection>
        ......
    </someSection>

    <someSection class='D'>
        <nestedSection class='C'>
        </nestedSection>
        <nestedSection class='C'>
         </nestedSection>
    </someSection>
</div>
What styles must I declare to make sections B and D display side-by-side (like they were in two adjacent columns of the same table)?
__________________

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

Last edited by ehentai; 04-06-2007 at 06:46 PM..
ehentai is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-06-2007, 10:27 PM Re: Displaying elements side-by-side without using tables
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Well a lot of ways to do that. Maybe float one to the left and float one to the right. Or you might use this bit posted by chrishirst:
http://www.webmaster-talk.com/css-fo...tml#post363166

Helped me figure out what I needed to do.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 01:53 AM Re: Displaying elements side-by-side without using tables
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
As Tom said there are a lot of ways you can set up columns without tables. Floating B to the left is probably the easiest, but it will depend on the entire layout of the page as to what's the best.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-07-2007, 05:30 AM Re: Displaying elements side-by-side without using tables
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
other thread on same problem

http://www.webmaster-talk.com/html-f...ight-side.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-07-2007, 02:52 PM Re: Displaying elements side-by-side without using tables
Experienced Talker

Posts: 44
Name: English Hentai Team
Trades: 0
Quote:
Originally Posted by chrishirst View Post
I started that thread also. Thanks for the answers... But float is such an headache, that I ended using tables...
__________________

Please login or register to view this content. Registration is FREE
ehentai is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 03:31 PM Re: Displaying elements side-by-side without using tables
j03
Average Talker

Posts: 22
Name: joe
Trades: 0
Ew, tables
j03 is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 03:50 PM Re: Displaying elements side-by-side without using tables
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Quote:
Originally Posted by ehentai View Post
I started that thread also. Thanks for the answers... But float is such an headache, that I ended using tables...
Not as hard as you think. Don't give up so easily. A table isn't the right way of doing it.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 04:10 PM Re: Displaying elements side-by-side without using tables
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You might also want to consider a using a list or definition list. Lists can be very flexible for that sort of thing.
__________________
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
 
Reply     « Reply to Displaying elements side-by-side without using tables
 

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.27230 seconds with 12 queries