SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: CSS Box Problem

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2002
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Box Problem

    I'm trying to make my news layout with CSS. Here's the properties for the news boxes layout.

    PHP Code:
        #newsbox {
            
    width:95%;
            
    float:left;
            
    text-align:left;
            
    border:1px #006600;
            
    }
            
        
    #newstitle {
            
    width:100%;
            
    float:left;
            
    text-align:left;
            
    background-color:#006600;
            
    font-size:14px;
            
    font-weight:bold;
            }
            
       
    #newsdate {
            
    width:100%;
            
    float:left;
            
    text-align:left;
            
    background-color:#C0C0C0;
            
    font-size:9px;
            
    font-color:#000000;
            
    }
            
       
    #newstext {
            
    width:100%;
            
    float:left;
            
    text-align:left;
            } 
    However, when I show the news, the box border around the news item does not show, and the date prints in the wrong color (it should be black, but it shows white). Is there something I'm missing here?

    You can see what I mean: Opening 1/1

    All other parts of the layout work just peachy. Thanks in advance.

  2. #2
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The border is not showing because you haven't defined the border-style:
    Code:
    #newsbox
            {
    	width:95%;
            float:left;
            text-align:left;
            border: 1px solid #006600;
            }
    For the date use color:#000000; instead of "font-color".

    HTH

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2002
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OOPS, this is what happens when you've been running low on sleep and you miss something. It's like looking for that thing you were looking for, and when you're not looking, you find it. Thanks.


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
  •