Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts

    CSS title bar code...I'm stuck

    Ok, I gots a question for you CSS nuts

    Here is my code:

    Code:
    <html>
    <head>
    <title>New Design</title>
    <STYLE TYPE="text/css">
    <!--
    @import url(company.css);
    H1 { background color: #330000; color: orange; font-family: impact }
    P { background: #330000; font-family: courier }
    -->
    A:link { text-decoration: none }
    A:active { text-decoration: none }
    A:visited { text-decoration: none }
    B { font-size: 15pt; line-height: 20pt }
    </STYLE>
    </head>
    <body bgcolor="#000033">
    
    <P STYLE="font-size: 30pt; color: green; font-family: papyrus, serif">This is a</P>
     
    <P STYLE="margin-top: -45px; margin-left: 60px; color: green; font-size: 28pt; font-weight: bold; font-family: papyrus, sans-serif">Test</P>
    
    </html>
    If you look at the background color on the text it is "indented" on the word test. How can I make this a perfect rectangle around my text. I am trying to make a title bar for my site.

    Thanks

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts
    by the way, I want the text to overlap a little like I have it.

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Ha! Nevermind yall. Took me awhile, but I did it.

    -Vapor

  • #4
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Curious, why are you using capital letters? Are you using HTML transitional instead of XHTML?

  • #5
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Huh? I'm confused. Capital letters? You mean for typing the word STYLE in my code? Just habit I guess.


    And no, I am not using XHTML, just HTML.

  • #6
    Regular Coder
    Join Date
    Feb 2005
    Location
    Lawrence, Kansas
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, that's what I was meaning. Just curious.


  •  

    Posting Permissions

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