...

View Full Version : image tiling



andynov123
10-31-2010, 05:49 AM
Im having trouble creating a black bar on the left side that im gonna use for a navi bar. Any suggestions???

My HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->

<link href="index.css" rel="stylesheet" type="text/css" />
</head>

<body bgcolor="#006666">
<div class="blackbar"><img src="blackbar.jpg" /></div>

<h4></h4>
</body>
</html>



My CSS




.blackbar {background-repeat:repeat-x}

DrDOS
10-31-2010, 05:59 AM
You're doing just about everything that can be done wrong, wrong. You're making the image a foreground image and not a background, etc. etc.. Try this, without the image.

<div class="blackbar"></div>

.blackbar {width:12px;height:500px;background: #000000;float:left}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum