View Full Version : I need some small help with CSS id's/classes... its not working :(

11-23-2008, 08:12 PM
Hey, i just started making a new website... Its going pretty smootly so far but i need some help.

First off, for all those ppl who have small screens (like 17" or smaller) the webpage will cover the whole page (with no vertical scrollbars...)... but its not doing it correctly... at the left side it has some free space, how do i get rid of it? its the same thing at the top of the page, how do i remove it? I used a big table and i have all my div's and stuff inside there... couse i can't center div's. Right?

Check this out!

Second problem, when you go to my website http://www.blubbz.com/website/ you can see two text lines. The first one is a link, and the second one is empty. The link is green, how can i style it with css to have another color? Ive seen ppl using something like

#whatever {
background-color: gray;
color: white;

#whatever a:link, whatever {
(im not using that css, its just an example.)

Im not sure if its coded right, but it should make the links look like the normal text... right? I also wan't the "visited" links to look like the normal text...

And also, if its possible, could i make a link of the whole div tag instead of making a link of the text? It looks better if they can hover over the div and press it...?

Plz help, thanks :D
(im really really tierd right now so im sorry for my english.)

11-23-2008, 09:11 PM
Hello najkiie,
The table is really not needed - you can center a div, usually with margins one way or another.

Start on your links with something like this:

#whatever a:link, #whatever a:visited, #whatever a:active {
font-size: 1em;
color: #FFFFFF;
text-decoration: none;
#whatever a:hover {
text-decoration: underline;

11-23-2008, 09:26 PM
Try this for a start, see if that works a little better.
(you'll need to change the path to your images)

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blubbz - Home</title>
<style type="text/css">
body {
background: #000000 url(images/stripe_bg_red.jpg) repeat-x;
font: 12px Arial, Helvetica, sans-serif;
color: #b2b2b2;
* {
margin: 0;
padding: 0;
border: none;
#wrap {
width: 980px;
margin: 20px auto; /**positions wrap 20px down and centers it**/
#header {
background: url(images/header_red.gif);
height: 89px;
border: 1px solid #FFF;
<div id="wrap">
<div id="header">
<!--end wrap--></div>