473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

block box in an inline formating context

Hi,

If a block box appears in an inline formating context, it will start a
new line box. However,
I can't find where this is stated in the CSS spec. Any pointer? Thanks!

Jun 2 '07 #1
4 1922
VK
On Jun 2, 6:26 pm, k...@cpttm.org.mo wrote:
If a block box appears in an inline formating context, it will start a
new line box.
I'm not sure if I understood you. Given say

div.inlineBox {
display: inline-block;
display: -moz-inline-box;
}

and <div class="inlineBox">foobar</div>

you can place <div>s on the same line - no visual new lines are added.

Jun 2 '07 #2
On 2007-06-02, ke**@cpttm.org.mo <ke**@cpttm.org.mowrote:
Hi,

If a block box appears in an inline formating context, it will start a
new line box. However,
I can't find where this is stated in the CSS spec. Any pointer? Thanks!
CSS 2.1 section 9.2.1.1 "Anonymous block boxes" is the bit you want I
think, but it may not be explained there in quite the same way that
you're visualizing it.
Jun 2 '07 #3
On Jun 3, 2:32 am, Ben C <spams...@spam.eggswrote:
CSS 2.1 section 9.2.1.1 "Anonymous block boxes" is the bit you want I
think, but it may not be explained there in quite the same way that
you're visualizing it.
Thanks again! It basically says the text before the block (and after
the block)
is grouped into an anonymous block box. So, there will be three block
boxes
and block boxes are laid out vertically.

Jun 3 '07 #4
On 2007-06-03, ke**@cpttm.org.mo <ke**@cpttm.org.mowrote:
On Jun 3, 2:32 am, Ben C <spams...@spam.eggswrote:
>CSS 2.1 section 9.2.1.1 "Anonymous block boxes" is the bit you want I
think, but it may not be explained there in quite the same way that
you're visualizing it.

Thanks again! It basically says the text before the block (and after
the block) is grouped into an anonymous block box. So, there will be
three block boxes and block boxes are laid out vertically.
That's right.
Jun 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: seajays | last post by:
I've got my page working just as I wanted it - but when I came to validate the XHTML, using W3c's validator it failed. Essentially as far as I can see it the problem is this: 1: <div> 2: <a...
12
by: Eric Lindsay | last post by:
I'm trying to learn how to read a DTD I wanted to use, http://www.w3.org/TR/html4/strict.dtd to ensure I was treating each element correctly in terms of being block, inline, or flow (either). ...
6
by: ste.paoletti | last post by:
hi, I have read that browsers support block element inside inline element but the css is not valid. Someone can tell me more about? What do you think? Thanks.
6
by: dave8421 | last post by:
Hi, I'm a bit confused about the definition about "Prinicpal Block Boxes" in CSS 2.1 draft specification. ( http://www.w3.org/TR/2006/WD-CSS21-20061106 ) <pre> 9.2.1 Block-level elements and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.