CSS and HTML errors.
#1

Okay, so I'm new to HTML and CSS but this is really confusing me. I'm trying to add a plain blue border at the top of my page but the code here(I'm using Notepad++) turns red and doesn't do anything.

PHP код:
.headerMenu {
    
background-color: #00B9ED;
    
height: 38px;
    
border-bottom:0px;
    
padding-left: auto;
    
padding-right: auto;
    
width: 100%;
} 
Where "headerMenu" is that stays red. Can someone help me please?
Reply
#2

I think for border at top you need border-top.
Reply
#3

PHP код:
.headerMenu { 
    
background-color: #00B9ED; 
    
height: 38px; 
    
border-top:1px solid blue; 
    
padding-left: auto; 
    
padding-right: auto; 
    
width: 100%; 
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)