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.

CSS Forum


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



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

Posts: 331
Location: Ontario, Canada
Trades: 0
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:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-16-2005, 11:40 AM
Fara0^'s Avatar
Super Talker

Posts: 103
Location: Copenhagen
Trades: 0
Maybe try to write "a" and not "A"
Hope it helps
__________________

Please login or register to view this content. Registration is FREE
Fara0^ is offline
Reply With Quote
View Public Profile Visit Fara0^'s homepage!
 
Old 01-16-2005, 11:43 AM
Chris_krasnichu's Avatar
Ultra Talker

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


Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-16-2005, 01:33 PM
TaylorAtCTS's Avatar
Webmaster Talker

Posts: 501
Location: Memphis, TN, USA
Trades: 0
Im not sure what your problem is, please elaborate
__________________

Please login or register to view this content. Registration is FREE


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, 01:43 PM
Chris_krasnichu's Avatar
Ultra Talker

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

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-16-2005, 01:45 PM
Chris_krasnichu's Avatar
Ultra Talker

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

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 01:54 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.

Last edited by Mooofasa; 01-18-2005 at 03:31 AM..
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 01-17-2005, 08:39 AM
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
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 online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 01-17-2005, 09:00 AM
log2's Avatar
Skilled Talker

Posts: 80
Trades: 0
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 09:03 AM..
log2 is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 09:25 AM
Super Moderator

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

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 01-18-2005, 08:40 AM
Chris_krasnichu's Avatar
Ultra Talker

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

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-18-2005, 09:15 AM
Super Moderator

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

Posts: 163
Trades: 0
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


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 01-18-2005, 12:54 PM
Super Moderator

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

Posts: 197
Location: Quebec, Canada
Trades: 0
it's color... not font-color
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE


Getting on the Web Standards band-wagon? Get these books -
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE


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, 04:59 PM
faze1's Avatar
Ultra Talker

Posts: 389
Trades: 0
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]
Please login or register to view this content. Registration is FREE
- Webhosting - Focusing on quality service
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Old 01-18-2005, 06:35 PM
Chris_krasnichu's Avatar
Ultra Talker

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

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Old 01-18-2005, 08:19 PM
karinne's Avatar
Extreme Talker

Posts: 197
Location: Quebec, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE


Getting on the Web Standards band-wagon? Get these books -
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE


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, 08:40 AM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Trades: 0
thats ok

Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS problems...
 

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.54585 seconds with 12 queries