Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 12-12-2007, 10:59 AM
kaz kaz is offline
Junior Member
 
Join Date: 02-15-06
Posts: 19
iTrader: 0 / 0%
why style sheet doesnt work?

Hi,

I'd like to know why this style sheet(below) doesnt work.

body {
background-color : #00ffff;
}
.ictdnews {
font-family : Arial;
font-weight : bold;
font-size : x-large;
}
.ictdmain {
background-color : #00ffff;width:400;color : #000000;
font-family : Arial;
font-size:16
}
.network{font-family:Arial;font-weight:bold;font-size:16; text-transform:capitalize
}


here is the html code:


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

<html>
<head>
<title>Untitled</title>
<link href="news.css" rel="stylesheet" type="text/css" />
<style type="text/css">
</head>
<body>
<p class="ictdnews">ictd news</p
td width="400"valign="top"background class="ictdmain"><h4 class="networking">New online Register to be installed</h4>

thanx
 
Reply With Quote
  #2 (permalink)  
Old 12-13-2007, 12:12 AM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 649
iTrader: 0 / 0%
your HTML is the problem, friend.

Code:
<html> <head> <title>Untitled</title> <link href="news.css" rel="stylesheet" type="text/css" /> </head> <body> <p class="ictdnews">ictd news</p td width="400"valign="top" class="ictdmain"><h4 class="networking">New online Register to be installed</h4>
Copy that HTML into your file and it shall work

BTW, you should be using DIV for simple displaying... Why are you just using a td element?
where's the rest of the table?

Boog's
__________________
Price is what you pay... Value is what you get.
 
Reply With Quote
  #3 (permalink)  
Old 12-17-2007, 02:23 PM
Contributing Member
Latest Blog:

[CaRP] Unknown document format.

 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,360
iTrader: 1 / 100%
You didn't close you're <p> tag properly.
You didn't open, nor close you're table, tr and td tag properly, or at all.

It all looks pretty messy.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <link href="news.css" rel="stylesheet" type="text/css" /> <style type="text/css"> </head> <body> <p class="ictdnews">ictd news</p td width="400"valign="top"background class="ictdmain"><h4 class="networking">New online Register to be installed</h4>
 
Reply With Quote
  #4 (permalink)  
Old 12-17-2007, 10:18 PM
imaginemn's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 02-18-04
Location: Brownsville, Texas
Posts: 1,356
iTrader: 0 / 0%
Assuming your HTML is correct in your CLASS stylesheet you have defined a class labeled NETWORK and in your HTML code you are trying to call a class labeled NETWORKING.
__________________
Brownsville Web Design , McAllen Website Design, Harlingen Web Design
Website Design | Web Development | eCommerce | Search Engine Optimization (SEO)
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Article work sheet john alis SEO Forum 15 03-31-2009 04:38 AM
READING EMPTY EXCEL SHEET FROM VB.NET SuperDooper Coding Forum 3 08-17-2008 07:59 PM
Style Sheet Question SFC Web Design Lobby 5 04-08-2005 02:12 PM
drop down menu code doesnt work help! docquesting Coding Forum 5 07-21-2004 01:58 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:40 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.