HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
border at bottom of paragraph
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
astro211



Joined: 28 Aug 2008
Posts: 18
Location: Adirondacks NY

PostPosted: Fri Sep 19, 2008 9:03 am     border at bottom of paragraph Reply with quote

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: 1173

PostPosted: Fri Sep 19, 2008 1:08 pm     Reply with quote

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>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial