 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
astro211
Joined: 28 Aug 2008
Posts: 18
Location: Adirondacks NY
|
| Posted: Fri Sep 19, 2008 9:03 am border at bottom of paragraph |
|
|
| I am a newbie and I'm trying to put a solid yellow line below a single paragraph in a page of text. I tried using div and included the entire page content in the div container. Then I put the border style in the element for the div container but the border displays at the bottom of the page and not at the bottom a the paragraph where I want it to. How do I code to get the border at the bottom of the paragraph with some padding between the paragraph and the border? Thanks, I am definitely a newbie and appreciate the help. |
|
|
sticks464
Joined: 31 Dec 2006
Posts: 1283
|
| Posted: Fri Sep 19, 2008 1:08 pm |
|
|
You can use inline styling to get your border
Code: <p style="border-bottom:1px solid yellow; padding-bottom:10px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus.</p> |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|