inkgrrl
01-23-2009, 03:02 AM
Hi everyone-
I'm having a tough time on the home page of this site. As you can see, the text, which should be next to the picture, is floated right but won't line up with the image. I feel like I've tried everything! Also, I'm unhappy with the amount of space between the nav bar and top of the picture, but I can't get that to close up either. Any help as soon as possible (this is supposed to go live) would be appreciated so much!
here is the html and css for it.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> </title><link rel="stylesheet" type="text/css" href="index_style.css"/>
<meta name="language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
<!--
function ViewSource() {
window.location = "view-source:" + window.location.href }
// -->
</script>
</head>
<body>
<div class="container">
<div id="logo"><img class="logo" src="logo_add_large.png" alt="b10 logo" width="958" height="160" /></div>
<div class="bar"><img src="orange_bar.png" width="900" height="37" alt="bar"/></div>
<div id="navbar"><ul>
<li><a href="index.html">Home</a></li>
<li><a href="menu_page.html">Menu</a> </li>
<li><a href="news.html">News</a></li>
<li><a href="staff.html">Staff</a></li>
<li><a href="gallery.html">Gallery</a></li>
</ul>
</div>
<img class="painting" src="paintings.gif" alt="copper pot and apple" width="600" height="466" />
<div id="maincontent">
<h1>French-Inspired American Cuisine </h1>
<div id="text">
<p>text</p>
</div>
<div class="hours">
<p class="hour_titles">
Lunch</p>
<p class="timedate">
Tuesday–Friday<br/>
11:30 am–2:00 pm</p>
<p class="hour_titles">Dinner<br/></p>
<p class="timedate">Tuesday–Saturday<br/>
5:00–close</p>
<p class="hour_titles">Happy Hour</p>
<p class="timedate">
Tuesday–Saturday<br/>
4:00–6:00<br/><br/>
Closed Sunday and Monday</p>
</div>
</div>
</div>
</body>
</html>
and css
body {
background-image:url(brown_back.gif);
background-repeat: no-repeat;
margin: 0 auto;
padding: 0;
text-align: center;
}
.container {
margin-top:20px;
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
padding-bottom:20px;
text-align:left;
width: 900px;
width: 900px;
}
html>body #content {
width: 900px;
}
img.logo {display: block;
float:left;
padding-top:0px;
}
img{border:none;}
#bar{float: left;
z-index:1;}
#navbar
{
position:relative;
z-index:20;
width:800px;
bottom: 55px;
}
#navbar ul li {
display:inline;
padding-left:50px;
margin:0;
margin-right:45px;
}
#navbar a:link,
#navbar a:visited {
color:#FFFFFF;
text-decoration:none;
font-family:"Monotype Corsiva", "Apple Chancery", cursive;
font-size: 1.35em;
}
#navbar a:hover {
color: #CC0000;
}
#navbar ul{padding-top:5px;
}
#nav a:active {
color: #FFCC00;
}
#text{
display:inline-block;
width: 200px;
height: 184px;
font-family: “Tahoma”, Geneva, sans-serif;
color: #FFFFFF;
padding-left:20px;
}
img.painting
{
margin:0;
padding:0;
border-style:double;
border-color:#4c2e1f;
border-width:.55em;
}
#maincontent
{float:right;
margin:0;
width:230px;
text-align:left;
font-size: .80em;
}
h1{
font-family: "lucinda sans", Helvetica, Sans-serif;
color: #990000;
margin-left:20px;
width: 268px;
}
p{margin:0;
padding:4px;;}
.hours
{font-family:“Tahoma”, Geneva, sans-serif;
color:#FFFFFF;
font-size:.9em;
line-height:.25em;
margin-left: 20px;
padding-top:30px;
height: 175px;
}
.timedate{
line-height:15px;
}
.hour_titles
{line-height: 5px;
color:#CC0000;
font-size: 1.75em;
font-family:"Monotype Corsiva", "Apple Chancery", cursive;
}
And I'm really sorry if I didn't put the code in correctly--If someone could advise me on what I need to do I will do so in the future. thanks again
I'm having a tough time on the home page of this site. As you can see, the text, which should be next to the picture, is floated right but won't line up with the image. I feel like I've tried everything! Also, I'm unhappy with the amount of space between the nav bar and top of the picture, but I can't get that to close up either. Any help as soon as possible (this is supposed to go live) would be appreciated so much!
here is the html and css for it.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> </title><link rel="stylesheet" type="text/css" href="index_style.css"/>
<meta name="language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
<!--
function ViewSource() {
window.location = "view-source:" + window.location.href }
// -->
</script>
</head>
<body>
<div class="container">
<div id="logo"><img class="logo" src="logo_add_large.png" alt="b10 logo" width="958" height="160" /></div>
<div class="bar"><img src="orange_bar.png" width="900" height="37" alt="bar"/></div>
<div id="navbar"><ul>
<li><a href="index.html">Home</a></li>
<li><a href="menu_page.html">Menu</a> </li>
<li><a href="news.html">News</a></li>
<li><a href="staff.html">Staff</a></li>
<li><a href="gallery.html">Gallery</a></li>
</ul>
</div>
<img class="painting" src="paintings.gif" alt="copper pot and apple" width="600" height="466" />
<div id="maincontent">
<h1>French-Inspired American Cuisine </h1>
<div id="text">
<p>text</p>
</div>
<div class="hours">
<p class="hour_titles">
Lunch</p>
<p class="timedate">
Tuesday–Friday<br/>
11:30 am–2:00 pm</p>
<p class="hour_titles">Dinner<br/></p>
<p class="timedate">Tuesday–Saturday<br/>
5:00–close</p>
<p class="hour_titles">Happy Hour</p>
<p class="timedate">
Tuesday–Saturday<br/>
4:00–6:00<br/><br/>
Closed Sunday and Monday</p>
</div>
</div>
</div>
</body>
</html>
and css
body {
background-image:url(brown_back.gif);
background-repeat: no-repeat;
margin: 0 auto;
padding: 0;
text-align: center;
}
.container {
margin-top:20px;
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
padding-bottom:20px;
text-align:left;
width: 900px;
width: 900px;
}
html>body #content {
width: 900px;
}
img.logo {display: block;
float:left;
padding-top:0px;
}
img{border:none;}
#bar{float: left;
z-index:1;}
#navbar
{
position:relative;
z-index:20;
width:800px;
bottom: 55px;
}
#navbar ul li {
display:inline;
padding-left:50px;
margin:0;
margin-right:45px;
}
#navbar a:link,
#navbar a:visited {
color:#FFFFFF;
text-decoration:none;
font-family:"Monotype Corsiva", "Apple Chancery", cursive;
font-size: 1.35em;
}
#navbar a:hover {
color: #CC0000;
}
#navbar ul{padding-top:5px;
}
#nav a:active {
color: #FFCC00;
}
#text{
display:inline-block;
width: 200px;
height: 184px;
font-family: “Tahoma”, Geneva, sans-serif;
color: #FFFFFF;
padding-left:20px;
}
img.painting
{
margin:0;
padding:0;
border-style:double;
border-color:#4c2e1f;
border-width:.55em;
}
#maincontent
{float:right;
margin:0;
width:230px;
text-align:left;
font-size: .80em;
}
h1{
font-family: "lucinda sans", Helvetica, Sans-serif;
color: #990000;
margin-left:20px;
width: 268px;
}
p{margin:0;
padding:4px;;}
.hours
{font-family:“Tahoma”, Geneva, sans-serif;
color:#FFFFFF;
font-size:.9em;
line-height:.25em;
margin-left: 20px;
padding-top:30px;
height: 175px;
}
.timedate{
line-height:15px;
}
.hour_titles
{line-height: 5px;
color:#CC0000;
font-size: 1.75em;
font-family:"Monotype Corsiva", "Apple Chancery", cursive;
}
And I'm really sorry if I didn't put the code in correctly--If someone could advise me on what I need to do I will do so in the future. thanks again