|
![]() |
|
| Author |
|
|||||||
|
Hogfather
Posts: 1657
Location: Cairns, Queensland
|
I'm not sure if what I want to do is possible with the current (X)HTML box model.
http://img294.imageshack.us/img294/2573/boxmodelbs7.th.gif http://imageshack.us/img/butansn.png The two boxes (divs, table cells, whatever) are continuous blocks of inline content. Basically,I want to whack some content in the A box and have the B box wrap around it. Doable? |
|||||||
| #0 01:17pm 15/04/08 |
|
|||||||
|
system
|
--
|
|||||||
| #0 |
|
|||||||
|
420 smoek evry day
Posts: 9
Location: Townsville, Queensland
|
With floats, yeah. It's typically used to have text wrap around images like in an article but the image elements can easily be a divs full of whatever content.
http://css.maxdesign.com.au/floatutorial/ Edit: On second reading this probably came off as patronizing crap that doesn't solve your problem depending on how knowledgable you are but it's the only way to do anything like you describe. It's called the box model and not the polygon model for a reason. last edited by 420 smoek evry day at 13:55:15 15/Apr/08 |
|||||||
| #1 01:55pm 15/04/08 |
|
|||||||
|
Raven
Posts: 2528
Location: Melbourne, Victoria
|
Haven't tested, but if Box B contains text, and box A is floating, then it should wrap around it.
|
|||||||
| #2 01:56pm 15/04/08 |
|
|||||||
|
jmr
Posts: 5699
Location: Brisbane, Queensland
|
Came into this thread expecting a different box model |
|||||||
| #3 03:21pm 15/04/08 |
|
|||||||
|
Hogfather
Posts: 1658
Location: Cairns, Queensland
|
Ahh hadn't realised that a making A a floating div inside b would do that.
Verr nice - thanks! |
|||||||
| #4 03:23pm 15/04/08 |
|
|||||||
|
Hogfather
Posts: 1659
Location: Cairns, Queensland
|
Thread title adequately describes which box model is contained within.
However original thread purpose is now fulfilled; it may be used to contain spoot, if required. |
|||||||
| #5 03:46pm 15/04/08 |
|
|||||||
|
Idol
Posts: 2268
Location: Brisbane, Queensland
|
http://img.perezhilton.com/wp-content/uploads/2008/04/king__oPt.jpg
This woman is 42 years old. (It's Dione from Clueless btw) |
|||||||
| #6 04:56pm 15/04/08 |
|
|||||||
|
Spook
Posts: 21362
Location: Brisbane, Queensland
|
stacey dash?
|
|||||||
| #7 07:55am 16/04/08 |
|
|||||||
|
system
|
--
|
|||||||
| #7 |
|
|||||||
|
| ||||||||