Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Size - Static Size

Status
Not open for further replies.

ThatRickGuy

Programmer
Oct 12, 2001
3,841
US
Hey guys, here's another one for you.

say I have a series of divs, the first is 50px wide, the next is 16px wide, and the next I want to be the rest of the width of the parent (100%-66px). Is that possible?

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
like this:

Code:
<div style="height: 100px; background-color: green;">
<div style="width: 50px; float: left; height: 100px; background-color: red;"></div>
<div style="width: 16px; float: left; height: 100px; background-color: yellow;"></div>
hi there</div>

*cLFlaVA
----------------------------
[tt]a frickin' twelve-gauge, what do you think?[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 
Thanks cLFlaVa! I swear, as soon as I read your posts I think to myself, "I remember that!" heh. That's what I get for leaving my books at home :(

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top