View Full Version : Why can I not see my border around my header?
02-08-2012, 12:40 PM
Last night I posted about putting a curved border. I followed your advice and it worked. Unfortunately for some reason I may not of saved all of my work (stupid error on my part). Now however I cannot see my border. My current code is
} *I've also just realised that my background colour for my header has also dissapeared! This must be part of the same problem.
02-08-2012, 12:44 PM
May be, you need to set a border-color.
02-08-2012, 12:47 PM
I've just put a colour in and it hasnt worked still.
02-08-2012, 01:28 PM
Right. I dont know whether this information will help you guys but here goes. I've added a background colour to the body and this has now highlighted that my header does have a curved border. Therefore the only thing I cannot understand is why the colour i've designated for my header is not working.
02-08-2012, 01:33 PM
Maybe it doesn’t undestand the “thin” keyword? Try it like this:
border: 1px solid red;
For further help you need to post your entire HTML and CSS, it’s not possible to give any real advice based on such a small snippet of code. Often an error is caused in a much different place than where it becomes obvious.
02-08-2012, 01:38 PM
Yes thats worked, I can see the border now. Thanks very much. Do you have any idea as to why my background colour is not working within the header?
02-08-2012, 01:42 PM
Do you have any idea as to why my background colour is not working within the header?
Please post your entire code or better a link to your page.
02-08-2012, 01:48 PM
Sorry for not being able to show you the page here is the code that I've got however for the header and the divs within it. I appreciate your patience
html below for my header.
<div class="logo"><img src="images/logo_jpg.jpg" width="234" height="125" alt="heart foundation logo"/></div>
<div class="contact"> <script>
Live Date Script-
© Dynamic Drive (www.dynamicdrive.com)
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var mydate=new Date()
if (year < 1000)
//change font size here
var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
else if (document.getElementById)
<span id="clock"></span> <img src="images/union_jack.jpg" width="40" height="28" alt="union jack" /><br/>
<span class="bold">Call:0741 390 2851</span></br>
css for header which is comprised of an image, live date and contact details below.
border: 1px solid grey;
font-family: Arial, Helvetica, sans-serif;
02-08-2012, 03:32 PM
I get the background color when I test that code at my end.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.