SA-MP Forums Archive
CSS and HTML errors. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: CSS and HTML errors. (/showthread.php?tid=403329)



CSS and HTML errors. - Jernu - 29.12.2012

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?


Re: CSS and HTML errors. - Mr.Anonymous - 29.12.2012

I think for border at top you need border-top.


Re: CSS and HTML errors. - SchurmanCQC - 29.12.2012

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