Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

92 users online



Creating a web site with divs and CSS help?

Creating a web site with divs and CSS help?

Currently viewing this thread: 1 (0 members and 1 guests)


Kristin

Kristin

Neverside Newbie
Status: Offline!

Creating a web site with divs and CSS help?

I need to create a web site with the use of CSS and XHTML. I have created my Web site in photoshop already, but I am confused as to how I should import my Web page from Photoshop to Dreamweaver so I can begin coding my site in CSS. Should I slice each section of the Web site up together, or individually?

I also need to create rollovers with CSS, but I am confused on that, too. I am trying to find out where the images I slice up go in my document, if they go inside my .css external code, or the main page.

Here's my code:

<!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>
<link href="body.css" rel="stylesheet" type="text/css" media="all" />
<link href="nav.css" rel="stylesheet" type="text/css" media="all" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

</head>

<body>
<div id="container">
<!--top head-->
<div id="header">
</div>

<!--welcome notice-->
<div id="home_left">
<div id="welcome">
<p>The Tree Branch was founded in 2008. As a small buisness company, we are proud to offer our customers heigh quality products and crafted from the finest
materials around. Our products are different from other bird feeders and homes you may find online, because we build with the envioment in mind. Our feeders
and yeard decorations are not only safe for our little friends, but for you and I, too.</p>
</div>
<!--end-->

<!--beginning of main navigation-->
<div id="navigation">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="shop.html">Shop</a></li>
<li><a href="vision.html">The Vision</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<!--end of navigation-->

<!--supporting text (shopping area content begins)-->
<div id="supporting_text">
<h4><span>Best Sellers</span></h4>
<table width="948" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="141">&nbsp;</td>
<td width="807">Product Discription here</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><div align="right"><a href="shop.html">Browse Gallery</a></div></td>
</tr>
</table>
</div>
<!--end of supporting text-->

<!--right content-->
<div id="home_right">
<h2>Testomonials</h2>
</div>
</div>
<!--end of right box-->

</div>
</body>
</html>

Last edited by Kristin, March 8th, 2008 07:02 PM (Edited 1 times)

Kristin

Kristin

Neverside Newbie
Status: Offline!

This is the updated code:

<!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>
<link href="../thetreeco/body.css" rel="stylesheet" type="text/css" media="all" />
<link href="../thetreeco/nav.css" rel="stylesheet" type="text/css" media="all" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<!--header goes here-->
<div id="container">
<div class="header">
</div>

<!--navigation begins-->
<div id="navigation">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="shop.html">Shop</a></li>
<li><a href="vision.html">Our Vision</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<!--ends-->

<!--main body-->
<div id="main_body class="twocolumn">
<div class="welcome">
<h2>Welcome to The Tree Branch.com</h2>
</div>
<h3>Best Sellers</h3>
<p>Browse through our collection of our <b>Best Selling </b>products</p>
</div>
<div id="rightcolumn">
<div class="right">
<h4><span>Testimonials</span></h4>
</div>
</div>
</div>
</body>
</html>

sparky

sparky

i make a mean grilled cheese.
Status: Offline!

One day Imma write up a good layout slicing tutorial for this poor community.. It basically requires a good eye for CSS and HTML. Knowing when to treat sliced portions as true <img>s, or when to treat something as a background for other things (content areas, navigations, etc). Look for opportunities to tile things (background-repeat) to save bandwidth.

Without seeing your Photoshop mockup I really can't help you more than that. Post it and I'll be glad to dissect it more for you.

Also.. great tut for rollovers:
http://www.alistapart.com/articles/sprites

___________________

Jon Culver Chia Pets

Kristin

Kristin

Neverside Newbie
Status: Offline!

Perhaps you could help a bit? I'm trying to do this project for my class. Here's a photo of my site. Everytime I code it in CSS and XHTML It looks like this:

The gray area was supposed to expand to add future content

Attachments:

Untitled-1.gif Untitled-1.gif (Download) 60.85 Kb, 76 views

site.psd 815.64 Kb, 32 views

sparky

sparky

i make a mean grilled cheese.
Status: Offline!

Can you publish it somewhere so I can see your CSS as well?

Your gray div isn't expanding because you need to specify a width. It needs that constraint so that it knows to grow vertically instead of horizontally.

___________________

Jon Culver Chia Pets

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0197 seconds.