I have been searching Google and the Adobe forums for awhile now, and while there are very valid solutions to similar problems I found that none of them fixed the problem that I am facing. I blame myself and getting lost in this sloppy coding of mine, so part of my plan was to start my style sheet over from scratch.
My question, what is the proper way to add a background image into a div? I currently have the top div following the "header" css style, here is what I have typed into that sections:
<style type="text/css">
@import url("../twoColLiqLtHdr.css");
.header {
width: 1000px;
height: 300px;
background-image: url(Assets/HeaderTemplate.png);
background-repeat: no-repeat;
background-position: center;
}
The problem here is that the background image isn't even appearing. I would greatly appreciate any help, could anyone inform me on the proper way to doing this so that I can implement images in divs in the future without turning my coding in a down right mess?
Thank you in advance. ![]()
I apologize, I'm unable to post a link to the page just yet. This is a snip of coding for a website still in the making for the company I work for.
Would any of the coding below help?:
</script>
<style type="text/css">
<!--
body {
background-color: #760101;
}
a:link {
color: #FFF;
}
a:visited {
color: #690;
}
.twoColLiqLtHdr #header table tr td {
color: #400000;
text-align: right;
}
-->
</style>
<link href="../twoColLiqLtHdr.css" rel="stylesheet" type="text/css" />
</head>
<header class="twoColLiqLtHdr">
<scmenu class="twoColLiqLtHdr">
<tab class="twoColLiqLtHdr">
<body class="twoColLiqLtHdr">
<div class="header" align="" id="header">Content Goes Here</div>
<div class="scmenu" align="" id="scmenu">Content Goes Here</div>
<div class="tabs" align="" id="tabs">Content Goes Here</div>
<div class="body" align="" id="body">Content Goes Here</div>
<div class="footer" align="" id="footer">Content Goes Here</div>
<script type="text/javascript">var TFN='';var TFA='';var TFI='0';var TFL='0';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="11773g197b36be92cde14c11fc77dacc3a2a4f1660eb17h9";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php ?k=11773g197b36be92cde14c11fc77dacc3a2a4f1660eb17h9;c=s;v=5";document. write(unescape('%3Cscript type="text/JavaScript" src="'+tf_ScrServer+'">%3C/script>'));</script>
</body>
</html>
That above is parts I added into the source code.
That doesn't help but I agree with Nancy it's a path problem.
From the page where you define the "header" class, is there a folder called Assets on that level with the file inside? Check CapiTaliZatIon too.
And that HTML file doesn't look to good either, what is with this code before the body tag:
<header class="twoColLiqLtHdr">
<scmenu class="twoColLiqLtHdr">
<tab class="twoColLiqLtHdr">
I thought the <class="twoColLiqLtHdr"> connected each class to the style sheet. I'm guessing I was wrong, I'm getting to the point in this process where I'm starting to confuse myself, part of the reason why I was looking to clean up and go from scratch.
For the Assets folder, I keep all of my images inside the Assets folder of the website.
North America
Europe, Middle East and Africa
Asia Pacific