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
newb - positioning my container in CSS...?
Old 02-21-2010, 03:16 PM newb - positioning my container in CSS...?
Average Talker

Posts: 24
Trades: 0
I am quite new to CSS and want to position a box to the RIGHT of my existing box. (proposed box marked by red arrow).
How do I do that in CSS effectively that will work both in IE and firefox?



Here's the code I am using for the first box:

Code:
<div id="container" style="width: 177px; height: 160px;">
    <div style="background: transparent url(sbx-top.png) repeat scroll 0% 0%; float: left; height: 31px; width: 177px;"></div>
    <div style="background: transparent url(sbx-left.png) repeat scroll 0% 0%; float: left; height: 100px; width: 12px;"></div>
    <div style="background: #e8e8e8 none repeat scroll 0% 0%; float: left; height: 100px; width: 153px;">CONTENT<br />CONTENT<br />CONTENT<br />CONTENT</div>
    <div style="background: transparent url(sbx-right.png) repeat scroll 0% 0%; float: left; height: 100px; width: 12px;"></div>
    <div style="background: transparent url(sbx-bottom.png) repeat scroll 0% 0%; float: left; height: 13px; width: 177px;"></div>
</div>
Also, when I increase text size in IE or firefox, I don't want the text to grow outside the container. Any ideas?

Last edited by Bansaw; 02-22-2010 at 04:44 AM..
Bansaw is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-21-2010, 08:33 PM Re: newb - positioning my container in CSS...?
Novice Talker

Posts: 9
Name: Ivan Castellanos
Trades: 0
float:right ?
AltIvan is offline
Reply With Quote
View Public Profile
 
Old 02-22-2010, 02:36 PM Re: newb - positioning my container in CSS...?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The answer is to float the boxes, they can both be set to float: left , or right.
__________________
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 03-01-2010, 11:40 AM Re: newb - positioning my container in CSS...?
Extreme Talker

Posts: 149
Trades: 0
sometimes floating right won`t work..it would be better if you float left both the first and the second one and it will show up as in the image
__________________
Free
Please login or register to view this content. Registration is FREE

Visit our
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
mimamo is offline
Reply With Quote
View Public Profile
 
Old 03-01-2010, 02:26 PM Re: newb - positioning my container in CSS...?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
sometimes floating right won`t work
Why not? I can't think of a single reason why it wouldn't.
__________________
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 newb - positioning my container in CSS...?
 

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