Log in

View Full Version : Background image in header section shows dreamweaver not in browser



Susie56
09-11-2014, 11:07 PM
Hi, Can anyone help me please? I have added coding in my css file for a Background image in header section so I don't have to add to every html page. It shows up in dreamweaver but not in browser, I have tried variations of coding and this is what I have at the moment:

background-image : url(../CornishHome-images/CornishHome.jpg);
background-repeat : no-repeat;

Nothing I have tried works, but have had success in the past. My website is http://www.cornishhome.co.uk

Thank you for looking, Sue

Deadweight
09-12-2014, 02:39 AM
Here you go:


#header {
height : 200px;
background-image : url(/CornishHome-images/CornishHome.jpg);
background-repeat : no-repeat;

width : 1050px;
padding : 0;
margin : 0;
text-align : center;
color : #fff;
border-top : 5px dotted #183C67;
}

Susie56
09-12-2014, 07:35 AM
Thank you very much, it still didn't show up, so altered main container and got there in the end.
Thanks again, Sue