2007-07-30 21:21:46 UTC
(more td's and /td's) |
|
What I want to know is how to vertically align the
Three answers:
Verident
2007-07-30 21:37:39 UTC
I also noticed in your code you open a
@nbsp; |
|
Also never leave an empty cell, use "@nbsp;" without quote to ensure "What you see is what you get"
P.S. Replace the "@" of "@nbsp;" with "&" since yahoo remove html entitities and you would just see a space
Iulian
2007-07-31 05:18:46 UTC
OR using css
using id
in head pu this
or you can include this file
Dirty Randy
2007-07-31 06:20:37 UTC
Here's a simple nav using the HTML/CSS method:
HTML:
CSS:
/* TOP PANEL */
#topPan{width:700px; height:252px; position:relative; margin:0 auto;}
#topPan h1{width:311px; height:215px; /*background:url(images/header-img1.jpg) 0 0 no-repeat #FEEBB0;*/ color:#fff; text-indent:-2000px;}
#topPan img{width:700px; height:209px; position:absolute; top:0; left:0;}
#topPan ul{width:376px; height:32px; display:block; position:absolute; top:215px; right:0px; background:url(images/menu-bg.gif) 0 0 repeat-x #FF8714; color:#fff;}
#topPan ul li{float:left; display:block; width:75px; height:32px; background:url(images/menu-divider.gif) right top no-repeat;}
#topPan ul li span{display:block; width:73px; height:32px; background:url(images/menu-hover.gif) 50% 0 no-repeat; font:13px/32px "Trebuchet MS",Arial, Helvetica, sans-serif; font-weight:bold; text-align:center; text-decoration:none;}
#topPan ul li a{display:block; width:73px; height:32px; background:url(images/menu-bg.gif) 0 0 repeat-x #FF8714; color:#fff; font:13px/32px "Trebuchet MS",Arial, Helvetica, sans-serif; font-weight:bold; text-align:center; text-decoration:none;}
#topPan ul li a:hover{display:block; width:73px; background:url(images/menu-hover.gif) 50% 0 no-repeat;text-decoration:none; /*position:fixed;*/}
#topPan ul li.contact{display:block; width:75px; height:32px; background:url(images/menu-bg.gif) 0 0 repeat-x #FF8714; color:#fff; font:13px/32px "Trebuchet MS",Arial, Helvetica, sans-serif; font-weight:bold; text-align:center; text-decoration:none;}
#topPan ul li.contact:hover{display:block; width:75px; background:url(images/menu-hover.gif) 50% 0 no-repeat;text-decoration:none; /*position:fixed;*/}
/* /TOP PANEL */
Yes, it is a lot, but it will save you hours of coding in the long run and it is easier to modify, instead of having to go through and wade through a bunch of tables.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...