PDA

View Full Version : CSS Question


intricatic
04-26-2007, 12:48 PM
Hi, I have an issue with CSS. I want to add a table at the very top of my site with links in it, and I want to add a background image to the table. How would I go about doing something like this on vbulletin?

nexialys
04-26-2007, 01:20 PM
hum, actually you are messing CSS with tables...

CSS is WITHOUT tables...

you have to edit the template "header" to add the table you want...

CyberAlien
04-26-2007, 03:08 PM
CSS is WITHOUT tables...
Nope. CSS doesn't mean without tables. CSS is for styling, it can be applied to anything, including tables.

Princeton
04-26-2007, 03:42 PM
yep, CSS is for presentation (style) not content (structural elements/data)

with that said, I do believe that the thread poster is confusing some terms

no mods
04-26-2007, 06:01 PM
Set an Image as Background:
<html>
<head>

<style type="text/css">
body
{
background-image:
url('bgdesert.jpg')
}
</style>

</head>

<body>
</body>

</html>


Create A Horizontal Menu:
<html>
<head>
<style type="text/css">
ul
{
float:left;
width:100%;
padding:0;
margin:0;
list-style-type:none;
}
a
{
float:left;
width:6em;
text-decoration:none;
color:white;
background-color:purple;
padding:0.2em 0.6em;
border-right:1px solid white;
}
a:hover {background-color:#ff3300}
li {display:inline}
</style>
</head>

<body>
<ul>
<li><a href="#">Link one</a></li>
<li><a href="#">Link two</a></li>
<li><a href="#">Link three</a></li>
<li><a href="#">Link four</a></li>
</ul>



</body>
</html>

Mess around with those two things in notepad or whatever you use, hope thats what you were talking about.