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
Please help! div's problem
Old 05-17-2007, 05:43 PM Please help! div's problem
Junior Talker

Posts: 1
Trades: 0
First of all.. hi everyone!
Now.. I have this code:
Code:
<html>
<head><title>None</title>
</head><body>


<div> 
    <div>
1    </div>
    <div>
2    </div>
    <div>
3    </div>
    <div>
4    </div>
</div>
    
    </body>
    </html>
and it shows me in page like this:
Code:
1
2
3
4
I want it to display like this:
Code:
1234
what properties do I have to use for the divs?
Thanks in advance!

Edit: please don't tell me to remove divs

Last edited by shutzu123; 05-17-2007 at 05:44 PM..
shutzu123 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-17-2007, 07:03 PM Re: Please help! div's problem
Average Talker

Posts: 18
Trades: 0
Well I am a beginner so I don't know if this is right but try:
HTML Code:
div {display:inline}
Obviously place that within CSS tags.
dandy is offline
Reply With Quote
View Public Profile
 
Old 05-18-2007, 10:41 AM Re: Please help! div's problem
Angelosanto's Avatar
Webmaster Talker

Posts: 554
Name: Danny Angelosanto
Trades: 0
That should just about sort it, but can I ask why?

Surely it would be easier to just use CSS lists for something like that?
__________________
"Those who believe in telekinetics, raise my hand."
-Kurt Vonnegut
_____________________________________
Angelosanto is offline
Reply With Quote
View Public Profile Visit Angelosanto's homepage!
 
Old 05-18-2007, 03:01 PM Re: Please help! div's problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Agreed, should use a list for list.
However, display:inline won't do it - the better solution is to float the divs.
__________________
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 Please help! div's problem
 

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