Previous Message
Next Message

Need help getting rid of divs

Sent by Ben Henick on 29 October 2004 17:05


On Fri, 29 Oct 2004, Collin_work wrote:

> You can see the page at: http://www.4grg.com/index_n.php
> Any help anyone can offer as far as making this code cleaner would be
> greatly appreciated.

My values here are all by dead reckoning, so they'll require tinkering to 
get exactly the same result... but the selectors are proper.

<style type="text/css">

#nav {
  list-style-type: none;
  position: absolute;
  left: x;
  top: y;
  width: 30px;  /* WAG */
}

#nav li {
  margin-left: -10px;  /* not sure of this coefficient, tinker with it  */
}

#nav a {
  font-size: 9px;
  color: rgb(255,255,255);
  display: block;
  height: 12px;
  padding: 4px 2px 4px 2px;
  background-color: rgb(0,0,128);
  border: 1px solid rgb(0,0,255);
}

#nav a:hover {
  border-color: rgb(0,0,0);
}

</style>

....

<ul id="nav">
<li><a href="index.php">Home</a></li>
<li><a href="pics.php">Pictures</a></li>
<li><a href="specs.php">Specs</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>

-- 
Ben Henick                "In the long run, men hit only what they aim
Sitebuilder At-Large       at.  Therefore, though they should fail
http://www.henick.net/     immediately, they had better aim high."
[EMAIL-REMOVED]       -- Henry David Thoreau


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: