SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: red line?

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    red line?

    Hello, im trying to create a class that would simply dispplay a red line (bar) whenever it is called,. so it can be called by doing this,
    <p class="redbar"></p>

    so far, this is what I have, and its not producing anything,
    p.redbar
    {
    background-color: #990000; width:100%; line-height: 1.5em
    }

    Thanks all for your help!

  2. #2
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    use height in CSS or put someting in the p tag (&nbsp; )

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    	<title>12345 12345 12345 12345 12345 </title>
    	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    	<style type="text/css">
    	.redbar
    	{
    	background-color: #990000; width:100%; line-height: 1.5em
    	}
    	</style>
    </head>
    <body>
    <p class="redbar">&nbsp;</p>
    </body>
    </html>

  3. #3
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,582
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thanks, you da man


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •