can anyone help? css?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bryc
    Confirmed User
    • Apr 2001
    • 102

    #1

    can anyone help? css?

    I was looking at this page:

    http://www.cnn.com/2007/US/01/08/ny.....ap/index.html

    Does anyone know how to create a box (with the text ingrained in it) like the one on the bottom left that says "ADVERTISER LINKS" on it. Is that done with css?

    Thanks in advance.
  • who
    So Fucking Banned
    • Aug 2003
    • 19593

    #2
    The text is in a separate layer and that layer uses margins to position as you see it.

    Comment

    • bryc
      Confirmed User
      • Apr 2001
      • 102

      #3
      Thanks for the reply! Do you happen to know where I can learn to create this? I'm a noob with css and have no knowledge of "margins" or "layers".

      Comment

      • who
        So Fucking Banned
        • Aug 2003
        • 19593

        #4
        You'd usually define this in your stylesheet, but this code might help you understand how it works:

        Code:
        <div style="border:1px solid black; width:300px;height:200px " class"box">
        <div style="font-size:16pt; font-weight:200; text-align:center; margin-top:-10px; background:white; position:absolute; left: 79px; width: 160px;">this is the title here</div>
          <p>this is</p>
          <p>just</p>
          <p>a box</p>
          <p>&nbsp;</p>
        </div>

        Comment

        • martinsc
          Too lazy to set a custom title
          • Jun 2005
          • 27047

          #5
          Originally posted by bryc
          Thanks for the reply! Do you happen to know where I can learn to create this? I'm a noob with css and have no knowledge of "margins" or "layers".
          http://dev.fyicenter.com/faq/css/css...troduction.php
          Make Money

          Comment

          • bryc
            Confirmed User
            • Apr 2001
            • 102

            #6
            Thanks guys for the help and info! I appreciate it!

            Comment

            Working...