Menu
Since I didn’t know CSS when I built my site, it has multiply nested tables and is a real bloated mess that’s exceeding my space on my host server. Can anybody explain to me–and feel free to treat me like a dummy–exactly how I go about creating the same effects using CSS so I can strip out the bloat?
Here’s a typical content page URL:
[url]www.jerizjoolz.com/earrings.html
[i]Originally posted by spufi [/i][font=georgia]If I'm not mistaken, the W3Schools are not related to the W3C. They just use the name.[/font]
[B]Yeah, I noticed this too and I thought it was kind of odd that the people known for setting the web standards don't even show valid code when they teach you how to code. [/B][/QUOTE]
[i]Originally posted by skolya [/i]
www.jerizjoolz.com/earrings.html [/QUOTE]
<i>
</i><body>
<h1><img src="images/Jeri%27z_JoolzG.gif" alt="Jerry's Joolz"></h1>
<h2><img src="images/earrings.gif" alt="Earrings"></h2>
<div>
<!-- Whatever other blah blah on the top -->
</div>
<div class="image2right">
<img src="Jewelry/image1.jpg" alt="Description here">
<ul>
<li>Blah Blah Blah</li>
<li>Item E12</li>
<li>Pay by paypal or Order by email</li>
</ul>
</div>
<div class="image2left">
<img src="Jewelry/image2.jpg" alt="Description here">
<ul>
<li>Blah Blah Blah</li>
<li>Item E16</li>
<li>Pay by paypal or Order by email</li>
</ul>
</div>
<!-- ... so forth -->
<i>
</i>body { background: #7E5E61
url('images/bggoldtonedkmauve.jpg') repeat-y;
margin-left: 200px }
h1, h2 { text-align: center; /* center align hack for IE */
left: auto; right: auto; /* true center align */ }
div.image2right { clear:both }
div.image2left { clear: both }
div.image2right img { float: right; border: 0 }
div.image2left img { float: left; border: 0 }
<i>
</i>Text Text -----------
Text Text | |
Text Text | Image |
| |
-----------
----------- Text Text
| | Text Text
| IMAGE | Text Text
| |
-----------
<i>
</i><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Jeri'z Joolz, Antique, Vintage, and Collectible Costume Jewelry--Bracelets</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {color: #c4a19f; font-family: BruceOldStyle_BT, sans-serif; font-size: 18px;
background: #7E5E61 url('images/bggoldtonedkmauve.jpg') repeat-y;
margin-left: 120px;}
a {color: #ffffce}
ul {list-style-type: none}
h1, h2 {text-align: center; /* center align hack for IE */
left: auto; right: auto; /* true center align */ }
h3 {text-align: left}
img {border: 0}
<i> </i>div.image2right {clear:both}
<i> </i>div.image2left {clear: both}
<i> </i>div.image2right div {float: right; border: 0; margin: 5px;}
<i> </i>div.image2left div {float: left; border: 0; margin: 5px;}
</style>
</head>
<body>
<h1><img src="http://www.jerizjoolz.com/images/Jeri%27z_JoolzG.gif" alt="Jeri'z Joolz"></h1>
<h2><img src="http://www.jerizjoolz.com/images/earrings.gif" alt="Earrings"></h2>
<p>For more bracelets, see <a href="http://www.jerizjoolz.com/bargain.html">The Bargain Bin</a>, where everything is under $20!</p>
<h3><img src="http://www.jerizjoolz.com/images/signedpink30.gif" alt="Designer Signed"></h3>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div style="display: none">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
</div>
<i> </i> <div class="image2right">
<i> </i> <div><img src="http://www.jerizjoolz.com/Jewelry/B9-copperbellcuff.jpg" width="200" height="96" alt="Copper Bell Cuff"></div>
<i> </i> <ul>
<i> </i> <li>Native American style cuff by COPPER BELL</li>
<i> </i> <li>Item B09</li>
<i> </i> <li>Price: $38</li>
<i> </i> <li><input type="image" src="https://www.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<i> </i> OR <a href="mailto:[email protected]"><img src="http://www.jerizjoolz.com/images/email.gif" width="64" height="33" alt="Order by Email"></a></li>
<i> </i> </ul>
<i> </i> </div>
<i> </i> <div class="image2left">
<i> </i> <div><a href="http://www.jerizjoolz.com/Jewelry/B26-corowhiteenamelleaves.jpg"><img src="http://www.jerizjoolz.com/Jewelry/B26-corowhiteenamleaves.jpg" width="221" height="234" alt="Coro Grapevine"><br>Click to enlarge</a></div>
<i> </i> <ul>
<i> </i> <li>Native American style cuff by COPPER BELL</li>
<i> </i> <li>Item B09</li>
<i> </i> <li>Price: $38</li>
<i> </i> <li><input type="image" src="https://www.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<i> </i> OR <a href="mailto:[email protected]"><img src="http://www.jerizjoolz.com/images/email.gif" width="64" height="33" alt="Order by Email"></a></li>
<i> </i> </ul>
<i> </i> </div>
<i> </i> <div class="image2right">
<i> </i> <div><img src="http://www.jerizjoolz.com/Jewelry/B12-florenzacameo.jpg" width="250" height="87" alt="Florenza Cameo"></div>
<i> </i> <ul>
<i> </i> <li>Native American style cuff by COPPER BELL</li>
<i> </i> <li>Item B09</li>
<i> </i> <li>Price: $38</li>
<i> </i> <li><input type="image" src="https://www.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<i> </i> OR <a href="mailto:[email protected]"><img src="http://www.jerizjoolz.com/images/email.gif" width="64" height="33" alt="Order by Email"></a></li>
<i> </i> </ul>
<i> </i> </div>
<i> </i> <div class="image2left">
<i> </i> <div><a href="http://www.jerizjoolz.com/Jewelry/B17-whiteglassbeads.jpg"><img src="Jewelry/B17-whiteglassbeads.jpg" width="290" height="55" alt="White Glass Beads"><br>Click to enlarge</a></div>
<i> </i> <ul>
<i> </i> <li>Native American style cuff by COPPER BELL</li>
<i> </i> <li>Item B09</li>
<i> </i> <li>Price: $38</li>
<i> </i> <li><input type="image" src="https://www.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<i> </i> OR <a href="mailto:[email protected]"><img src="http://www.jerizjoolz.com/images/email.gif" width="64" height="33" alt="Order by Email"></a></li>
<i> </i> </ul>
<i> </i> </div>
<i> </i> <div class="image2right">
<i> </i> <div><img src="http://www.jerizjoolz.com/Jewelry/B14-diamondvermeil.jpg" width="284" height="49" alt="diamond vermeil"></div>
<i> </i> <ul>
<i> </i> <li>Native American style cuff by COPPER BELL</li>
<i> </i> <li>Item B09</li>
<i> </i> <li>Price: $38</li>
<i> </i> <li><input type="image" src="https://www.paypal.com/images/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<i> </i> OR <a href="mailto:[email protected]"><img src="http://www.jerizjoolz.com/images/email.gif" width="64" height="33" alt="Order by Email"></a></li>
<i> </i> </ul>
<i> </i> </div>
</form>
</BODY>
</HTML>
[CODE]
div#wrapper {
padding: 50px 10px 10px 120px;
background: #7E5E61
url('http://www.jerizjoolz.com/images/bggoldtonedkmauve.jpg') repeat-y;
color: #c4a19f;
}
[/CODE]
[CODE]
div.header, div.header p {
margin:0px 0px 25px 0px;
text-align: center;
}
div.entry { /* the middle container holding IMG and UL
border-top: 2px dotted #c4a19f;
clear: both
}
div#footer {
padding: 50px 0px;
clear:both;
}
[/CODE]
[CODE]
img.right {
float:right;
margin-left:10px;
}
ul.left {
text-align: right;
}
li {
list-style: none;
}
img.left {
float:left;
margin-right:10px;
}
ul.right {
text-align: left;
}
[/CODE]
[CODE]
<body>
<div id="wrapper">
<div class="header">
<img>
<img>
<p></p>
</div>
<div class="entry">
<ul class="right">
<img class="left">
/* this is not a good idea, to put the image
in the UL tag, but I wanted a quick fix
YOU better put them out of it and give some room
on top with the padding or margin */
<li></li>
</ul>
</div>
.. etc .. alternating the class from left to right on the above UL and img.
[/CODE]
0.1.9 — BETA 5.3