471,599 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

CSS di vs in one line

3
I am trying to display a number of divs in one line. Each div have this structure:

[HTML]
<div >
<h3>title</h3>
<img src="source" alt="" />
</div>
[/HTML]

I tried to set the div display to inline, then the h3 inside the div display to inline too and it worked only in FF. here is the url: http://www.developer.ps/ee/show2/index.html


Thanks

-dirar
Sep 1 '07 #1
3 1659
[HTML]<style type="text/css">
.one_line {
float: left;
width: 100px;
}
</style>[/HTML]

[HTML]<div class="one_line" >
<h3>title</h3>
<img src="source" alt="" />
</div>
<div class="one_line" >
<h3>title</h3>
<img src="source" alt="" />
</div>
<div class="one_line" >
<h3>title</h3>
<img src="source" alt="" />
</div>[/HTML]
Sep 1 '07 #2
dirar
3
Hi, thanks for replying.

I tried this before, but the problem is that when the div reaches the end of the page or the wrapper div it goes to a new line
Sep 2 '07 #3
dirar
3
Solved, check http://www.developer.ps/moo/scrollermoo
Sep 3 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Adi | last post: by
6 posts views Thread by magix | last post: by
14 posts views Thread by WStoreyII | last post: by
11 posts views Thread by xdevel | last post: by
19 posts views Thread by =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.