[css-d] OK to insert block-level tag inside div?

2010-11-18 Thread John
Hello; This is related to my question yesterday about proper use of div tags... I now get that an ID must be used only once on a page. Within div tags (from code generously provided here) I've been able to format specific bits of content, like text, using classes and span tags. But I'd

Re: [css-d] [+] OK to insert block-level tag inside div?

2010-11-18 Thread Thierry Koblentz
This is related to my question yesterday about proper use of div tags... I now get that an ID must be used only once on a page. Within div tags (from code generously provided here) I've been able to format specific bits of content, like text, using classes and span tags. But I'd like to

Re: [css-d] OK to insert block-level tag inside div?

2010-11-18 Thread Beth Lee
On Thu, Nov 18, 2010 at 2:34 PM, John j...@coffeeonmars.com wrote: I now get that an ID must be used only once on a page. Within div tags (from code generously provided here) I've been able to format specific bits of content, like text, using classes and span tags. But I'd like to ad a

Re: [css-d] OK to insert block-level tag inside div?

2010-11-18 Thread G.Sørtun
On 18.11.2010 22:34, John wrote: Hello; This is related to my question yesterday about proper use of div tags... I now get that an ID must be used only once on a page. Within div tags (from code generously provided here) I've been able to format specific bits of content, like text, using

Re: [css-d] [+] OK to insert block-level tag inside div?

2010-11-18 Thread Thierry Koblentz
Yes, but paragraphs are block-level elements, so simply give a class to one of the paragraphs to create that border. One thing you'll notice though, is that once you apply a border to a paragraph its margin will not collapse with the margin of its sibling (see margin collapsing). Before

Re: [css-d] OK to insert block-level tag inside div?

2010-11-18 Thread David Laakso
On 11/18/10 4:34 PM, John wrote: But I'd like to ad a dotted line between to paragraphs... Others have answered your question. However, if you are still having difficulty, it always a good idea to put the page in question on a public server and provide a clickable link to it in your post

Re: [css-d] OK to insert block-level tag inside div?

2010-11-18 Thread John
OK..Here's a link to a graphic showing the dotted line and its position which I'm after: http://thinkplan.org/workshop/pix/dottedline.jpg thanks! John On Nov 18, 2010, at 2:42 PM, David Laakso wrote: On 11/18/10 4:34 PM, John wrote: But I'd like to ad a dotted line between to

Re: [css-d] OK to insert block-level tag inside div?

2010-11-18 Thread John
One thing I tried here was to make a new p class: .dotted { border-top: 1px dotted #000; padding: 8px 0 0 0; } that top padding value of 8px gets the line where I want it vertically... the p portion I don't want to have with the dotted line, I just closed that p tag after

Re: [css-d] OK to insert block-level tag inside div?

2010-11-18 Thread Alan Gresley
On 19/11/2010 10:15 AM, John wrote: OK..Here's a link to a graphic showing the dotted line and its position which I'm after: http://thinkplan.org/workshop/pix/dottedline.jpg thanks! John If this is what you have, then theoretically, no class is need. If the text that is bold is a