Reply
CSS problems...
Old 01-16-2005, 10:37 AM CSS problems...
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Hey,
I have this code I wrote and for somereason it's on effecting the link.
Can anybody help me out?

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Co-Design</title>
<style type="text/css">
<!-- 
.MASTERTABLE {
border-width: 1px;
border-color: #000000;
}
td { 
border: 0;
 }
A { 
font-color: #B4E4ED;
font-size: 15px;
font-family: "Copperplate Gothic Bold";
 }
A:hover {
font-color: #C70000;
font-size: 15px;
font-family: "Copperplate Gothic Bold";
}

-->
</style>
</head>
<body>

<center>
<table class="mastertable" border="" width="600" id="master">
 <tr>
  <td border="0" id="Header">
	</td>
 </tr>
 <tr>
  <td id="MainBody">
	 <table width="100%">
	  <tr>
		 <td width="150" id="LeftMenu">
	<!-- MENU -->
		 <a href="#">Test</a>
		 
		 
		 
		 <!-- End MENU -->
		 </td>
		 <td id="CenterContent">
		  <table cellspacing="0" width="100%">
			 <tr>
			  <td background="Images/top_left_curve.jpg" width="15" height="25">				
				</td>
				<td background="Images/top_line.jpg" valign="top" width="315">
			  </td>			
			 </tr>
			 <tr>
			  <td background="Images/left_Menu_line.jpg" width="15">
				<td id="Content">
				</td>
			 </tr>
			</table>		
		 </td>
		</tr>
	 </table>
	</td>
 </tr>
</table>
</center>
	
 
</body>
</html>
Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-16-2005, 10:40 AM
Fara0^'s Avatar
Super Talker

Posts: 103
Location: Copenhagen
Maybe try to write "a" and not "A"
Hope it helps
Fara0^ is offline
Reply With Quote
View Public Profile Visit Fara0^'s homepage!
 
Old 01-16-2005, 10:43 AM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
It doesn't help


Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-16-2005, 12:33 PM
TaylorAtCTS's Avatar
Webmaster Talker

Posts: 501
Location: Memphis, TN, USA
Im not sure what your problem is, please elaborate
__________________
Memphis Web Design - Memphis Website Design - Memphis Website Development

Custom Tailored Solutions designs the best looking, most functional customized marketing solutions from web design to brochures with a 100% satisfaction guarantee, all for a price that fits your budget.
TaylorAtCTS is offline
Reply With Quote
View Public Profile Visit TaylorAtCTS's homepage!
 
Old 01-16-2005, 12:43 PM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
for some reason the link text wont change color or anythign it's really strange.

Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-16-2005, 12:45 PM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
never mind I just figured it out :P

Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 12:54 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
on

td {border: 0;} - you must get rid of the ; as it serves no purpose in this case

should be

td {border: 0px}

The selector A doesn't mean anything. It isn't even a sub-psuedo.
It should be

a:link

--twitch
__________________
Tumblings.co.uk - Tumblog with thoughts, quotes, links, videos, images and my creations.
Opera Browser - The best free web browser.
Opera Dev Tools - Firefox is now Firefail.

Last edited by Mooofasa : 01-18-2005 at 02:31 AM.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 01-17-2005, 07:39 AM
Webmaster Talker

Posts: 623
Location: Kokkola, Finland
td {border: 0px} is the same as td {border: 0}. you only have to put units when there is a number other than zero. when it's zero it doesn't matter because zero of anything is, er, zero
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 01-17-2005, 08:00 AM
log2's Avatar
Skilled Talker

Posts: 80
Try this:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<title>Co-Design</title> 
<style type="text/css">  
.MASTERTABLE { 
border-width: 1px; 
border-color: #000000; 
}
td { 
border: 0; 
} 
A:link {
font-color: #B4E4ED; 
font-size: 15px; 
font-family: "Copperplate Gothic Bold"; 
} 
a:visited {
font-color: #B4E4ED; 
font-size: 15px; 
font-family: "Copperplate Gothic Bold"; 
} 
A:hover { 
font-color: #C70000; 
font-size: 15px; 
font-family: "Copperplate Gothic Bold"; 
} 
</style> 
</head> 
<body> 
<center> 
<table class="mastertable" border="" width="600" id="master">  
<tr>  
<td border="0" id="Header">  
</td>  
</tr>  
<tr>  
<td id="MainBody">  
<table width="100%">  
<tr>  
<td width="150" id="LeftMenu">  
<!-- MENU -->  
<a href="#">Test</a>  
<!-- End MENU -->  
</td>  
<td id="CenterContent">  
<table cellspacing="0" width="100%">  
<tr>  
<td background="Images/top_left_curve.jpg" width="15" height="25"> 
</td>  
<td background="Images/top_line.jpg" valign="top" width="315">  
</td> 
</tr>  
<tr>  
<td background="Images/left_Menu_line.jpg" width="15">  
<td id="Content">  
</td>  
</tr>  
</table> 
</td>  
</tr>  
</table>  
</td>  
</tr> 
</table> 
</center>  
</body> 
</html>
The problem (at least what i saw) was that it was in <!-- --> tags meaning the whole thing was a big comment, and it's all on one line?

Last edited by log2 : 01-17-2005 at 08:03 AM.
log2 is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 08:25 AM
Webmaster Talker

Posts: 623
Location: Kokkola, Finland
you need to leave those in <!-- -->
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 01-18-2005, 02:33 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
Everyone who uses css within a HMTL document knows that the properties of the script must be surrounded by <!-- & -->.

And don't you only use the semi-colon when stating another proerty in the same selector?

--twitch
__________________
Tumblings.co.uk - Tumblog with thoughts, quotes, links, videos, images and my creations.
Opera Browser - The best free web browser.
Opera Dev Tools - Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 01-18-2005, 07:40 AM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
I fixed it, there was no probelm with the code just a little varible mixup

Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-18-2005, 08:15 AM
Webmaster Talker

Posts: 623
Location: Kokkola, Finland
you can use thge semicolon with only one property in the selector and seems to be better to do so
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 01-18-2005, 11:52 AM
NateDogg's Avatar
Extreme Talker

Posts: 163
Quote:
Originally Posted by davemies
you can use thge semicolon with only one property in the selector and seems to be better to do so
I agree
__________________
Nathan

Become an affiliate
Web Design Web Hosting
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 01-18-2005, 11:54 AM
Webmaster Talker

Posts: 623
Location: Kokkola, Finland
it's also a good habit to get into to put it there anyway in case you add another property later
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 01-18-2005, 02:00 PM
karinne's Avatar
Extreme Talker

Posts: 197
Location: Quebec, Canada
it's color... not font-color
__________________
a web design portfolio - blog - last.fm - del.icio.us - widow's walk

Getting on the Web Standards band-wagon? Get these books - Designing With Web Standards and Web Standard Solutions

Takin' in the view from the outside. Feeling like the underdog. Watching through the window I'm on the outside. Living like the underdog.
-Dream Theater
karinne is offline
Reply With Quote
View Public Profile Visit karinne's homepage!
 
Old 01-18-2005, 03:59 PM
faze1's Avatar
Ultra Talker

Posts: 389
Nothing wrong with the extra semi-colon at the end, it wont hurt anything and as davemies said it's a good practice. Personally I like to think were all just a semi-colon away from total disaster.
__________________
[size=2]Faze1.net - Webhosting - Focusing on quality service
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Old 01-18-2005, 05:35 PM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Quote:
Originally Posted by karinne
it's color... not font-color
THAT'S WHAT I FIXED!

Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-18-2005, 07:19 PM
karinne's Avatar
Extreme Talker

Posts: 197
Location: Quebec, Canada
i know... but if someone else come in looking for the answer, now they have it. I didn't see a post where you said what you fixed. I'm sorry if it was already stated.
__________________
a web design portfolio - blog - last.fm - del.icio.us - widow's walk

Getting on the Web Standards band-wagon? Get these books - Designing With Web Standards and Web Standard Solutions

Takin' in the view from the outside. Feeling like the underdog. Watching through the window I'm on the outside. Living like the underdog.
-Dream Theater
karinne is offline
Reply With Quote
View Public Profile Visit karinne's homepage!
 
Old 01-19-2005, 07:40 AM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
thats ok

Chris
__________________
Name: Chris Krasnichuk
Email Address: chris.krasnichuk@gmail.com
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS problems...