Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 01-21-2005, 10:59 PM classes
pipers dragon's Avatar
Extreme Talker

Posts: 190
Trades: 0
Im trying to make my site work with classes so that I can take the borader off of ONE of my tables withought editing my whole css sheet...

here is my style sheet:
HTML Code:
body {
background-repeat: repeat-y;
margin-top: 0px;
margin-left: 0px;
font-family: century gothic;
color: #FFB1AC;
font-size: 10px;
letter-spacing: 1px;
}

A:link {
font-family: century gothic;
color: #FFB1AC;
font-size: 10px;
text-decoration: value;
}

A:visited {
font-family: century gothic;
color: #FFB1AC;
font-size: 10px;
text-decoration: none;
}

A:active {
font-family: century gothic;
color: #FFB1AC;
font-size: 10px;
text-decoration: value;
}

A:hover {
font-family: century gothic;
color: #DCA5A4;
font-size: 10px;
text-decoration: none;
letter-spacing: 2px;
font-weight: bold;
}

table {
align: center;
}

table.2 {
align: left;
}

td{
align: middle;
border:1px solid #FFB1AC; 
background-color: cococo;
font-size: 10px;
line-height: 11px; 
letter-spacing: 1pt;
}

td.2{
background-color: cococo;
font-size: 10px;
line-height: 11px; 
letter-spacing: 1pt;
}

input, textarea { 
border:1px dotted #FFB1AC; 
background:000000; 
font-family: century gothic; tahoma, arial;
font-size: 10px;
color: #FFB1AC; 
 }

#css2 {
background-color: cococo;
font-size: 10px;
line-height: 11px; 
letter-spacing: 1pt;
}
and here is my main code

PHP Code:
<?php

include('header.inc');

if(!
$_SERVER['QUERY_STRING']) { ?>
<body background="background.jpg" bgcolor="#000000"> 
<img src="/images/header.jpg" style="position: absolute; left: 0px; top: 0px;">
<div id="div1" width="155px" height="500px" style="position: absolute;
left: 12px;
top: 337px;"><table  width="155px" height="500px" class="css2"><tr class="css2"><td class="css2" id="css2">
<? include("/home/resist/public_html/nav.php")?>
</td></tr></table>
</div>

<iframe src="indexx.php?home" name="iframe" scrolling="no" width="285px" height="1000px" frameborder="no" allowtransparency="true" style="position: absolute; top: 436px; left: 199px;"></iframe>

<? } elseif ($_SERVER['QUERY_STRING'] == "home") { ?>
<body bgcolor="transparent">
coming soon

<? }  
include(
'footer.inc'); ?>

Can you tell me why my classes arent working?

my site is http://resist-insanity.net/index.php
pipers dragon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2005, 11:05 PM
pappasaa's Avatar
Ultra Talker

Posts: 268
Trades: 0
you need to post up your header code too
__________________
visit my link...um...nevermind
pappasaa is offline
Reply With Quote
View Public Profile Visit pappasaa's homepage!
 
Old 01-24-2005, 02:21 AM
Average Talker

Posts: 29
Trades: 0
They arent working because you have them defined as id's not classes.

#css2 should be .css2

Use the # sign is only be used for id's (example: id="css2") and can only be used 1 your code. Use a class (.css2) for multiple instances of a item you want to format.

Also, its probably a good idea to change the names of your classes so they describe there purpose.
colincameron is offline
Reply With Quote
View Public Profile Visit colincameron's homepage!
 
Reply     « Reply to classes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22495 seconds with 12 queries