![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Everything I know about HTML headings tells me that there is at least a line break before them and one after them. |
|
Does CSS offer any control over these line breaks? I sometimes want to place some plain text to the right of a header, for example at http://www.swiftys.org.uk/decisions where I've resorted to my usual table tricks to get the effect, and also right aligning the text on the right. |
#3
| |||
| |||
|
|
Everything I know about HTML headings tells me that there is at least a line break before them and one after them. |
|
The line break above must somehow be conditional, otherwise you'd get a blank line at the top of a document which starts with a header. And similarly for the one below if the document ends with a header (odd, but possible). Does CSS offer any control over these line breaks? I sometimes want to place some plain text to the right of a header, for example at http://www.swiftys.org.uk/decisions where I've resorted to my usual table tricks to get the effect, and also right aligning the text on the right. |
|
Some of the higher numbered headers in default MS Word documents (and GML documents, I recall) lack the trailing line break, so become just some "bold text at the beginning of a paragraph". |
#4
| |||
| |||
|
|
Everything I know about HTML headings tells me that there is at least a line break before them and one after them. The line break above must somehow be conditional, otherwise you'd get a blank line at the top of a document which starts with a header. And similarly for the one below if the document ends with a header (odd, but possible). Does CSS offer any control over these line breaks? I sometimes want to place some plain text to the right of a header, for example at http://www.swiftys.org.uk/decisions where I've resorted to my usual table tricks to get the effect, and also right aligning the text on the right. |
#5
| |||||
| |||||
|
|
Everything I know about HTML headings tells me that there is at least a line break before them and one after them. |
|
The line break above must somehow be conditional, otherwise you'd get a blank line at the top of a document which starts with a header. And similarly for the one below if the document ends with a header (odd, but possible). |
|
Does CSS offer any control over these line breaks? |
|
I sometimes want to place some plain text to the right of a header, for example at http://www.swiftys.org.uk/decisions where I've resorted to my usual table tricks to get the effect, and also right aligning the text on the right. |
|
Some of the higher numbered headers in default MS Word documents (and GML documents, I recall) lack the trailing line break, so become just some "bold text at the beginning of a paragraph". |
#6
| |||
| |||
|
|
Everything I know about HTML headings tells me that there is at least a line break before them and one after them. The line break above must somehow be conditional, otherwise you'd get a blank line at the top of a document which starts with a header. And similarly for the one below if the document ends with a header (odd, but possible). Does CSS offer any control over these line breaks? |
|
I sometimes want to place some plain text to the right of a header, for example at http://www.swiftys.org.uk/decisions where I've resorted to my usual table tricks to get the effect, and also right aligning the text on the right. |
#7
| |||
| |||
|
|
Since headers are block elements, you can float them. |
#8
| |||
| |||
|
|
What's with all the table markup? |
#9
| |||
| |||
|
|
Pardon? There are only two heading elements there, and they are illogically <h2>. (How can you have a second level without having the first level?) |
#10
| |||
| |||
|
|
The H2 is there because, pre-CSS (where I spent most of my life) the H2 was the way to get a heading that was smaller than an H1. It still works, so why change? (That's rhetorical) |
![]() |
| Thread Tools | |
| Display Modes | |
| |