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 11-07-2010, 02:06 PM Link CSS with HTML
Novice Talker

Posts: 5
Name: Umar Kaleem
Trades: 0
Hello

I am having problem linking CSS with HTML

First my CSS file is called custombuild.css

My HTML code are:

HTML Code:
<html>
<head>
<title>Homepage</title>

<link rel="stylesheet" href="custombuild.css" />

</head>	 

<body>
<center><img src="http://www.webmaster-talk.com/images/topandlogo.jpg" width="900" height="140" />
</body>
</html>
My CSS code are:
Code:
#body {
font-family: sana;
font-size: 20px;
background-color: #cccccc;
}

#content {
background-color: #ffffff;
width: 750px;
border: 100px black soild;
}

#soild {
border-style:solid;
width:879px;
height:500px;
border-width:10px;
What have i done wrong. Its not working?

Thanks

Last edited by chrishirst; 11-07-2010 at 05:01 PM..
umarkal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-07-2010, 02:16 PM Re: Link CSS with HTML
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Are you sure you have the path to the css file correct?

You're also missing a declaration in your link statement, is should be like this:
Quote:
<link rel="stylesheet" href="custombuild.css" type="text/css">
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-08-2010, 03:39 AM Re: Link CSS with HTML
Novice Talker

Posts: 5
Name: Umar Kaleem
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Are you sure you have the path to the css file correct?

You're also missing a declaration in your link statement, is should be like this:
Hello

I have tried that but nothing is happening.

Even if I change the background-color for example, nothing happens?

Thanks
umarkal is offline
Reply With Quote
View Public Profile
 
Old 11-08-2010, 03:49 AM Re: Link CSS with HTML
Junior Talker

Posts: 3
Name: Khunponpun
Trades: 0
In CSS file. I think that you shold remove "#" out of "#body".

Thanks
__________________
|
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
jonmufc is offline
Reply With Quote
View Public Profile Visit jonmufc's homepage!
 
Old 11-08-2010, 05:43 AM Re: Link CSS with HTML
Skilled Talker

Posts: 60
Name: Dmitry
Trades: 0
Quote:
Originally Posted by jonmufc View Post
In CSS file. I think that you shold remove "#" out of "#body".

Thanks
Seems to be right answer.

And fix soild on solid
__________________
Sincerely, Dmitry

Please login or register to view this content. Registration is FREE
ElmanF is offline
Reply With Quote
View Public Profile Visit ElmanF's homepage!
 
Old 11-08-2010, 11:05 AM Re: Link CSS with HTML
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Ok, exactly WHAT are you trying to accomplish? Your CSS doesn't coincide with the HTML you posted. Either give us a link or post ALL of the html and css.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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


Last edited by LadynRed; 11-08-2010 at 11:07 AM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-08-2010, 12:27 PM Re: Link CSS with HTML
Novice Talker

Posts: 5
Name: Umar Kaleem
Trades: 0
Quote:
Originally Posted by jonmufc View Post
In CSS file. I think that you shold remove "#" out of "#body".

Thanks
Hello

Removing # has worked. Thank you for all your help!

I want to have a border to write in it. What is the code?

Is it:

soild {
border-style:solid;
width:879px;
height:500px;
border-width:10px;
}

But that does not work.

Thanks
umarkal is offline
Reply With Quote
View Public Profile
 
Old 11-09-2010, 03:47 AM Re: Link CSS with HTML
radiant_luv's Avatar
Skilled Talker

Posts: 56
Location: WebVille
Trades: 0
Read what "LadynRed" had posted earlier;

Quote:
Your CSS doesn't coincide with the HTML you posted. Either give us a link or post ALL of the html and css.
If you could do us a favor please post a link/codes and what exactly you trying to achieve. For e.g. border for which element?

As the css you posted,
Code:
soild {
border-style:solid;
width:879px;
height:500px;
border-width:10px;
}
solid is not html element. if you would like to use it as a identifier then it can be either id or class and prefixed with #(for id) or . (for class) and in the html you should be calling the styles through the identifier; something like this should be on place
Code:
<div id="solid">Some demo text </div>
and the css would be
Code:
#soild {
border:solid 10px #ccc;
width:879px;
height:500px;
}

Last edited by radiant_luv; 11-09-2010 at 03:57 AM..
radiant_luv is offline
Reply With Quote
View Public Profile Visit radiant_luv's homepage!
 
Old 11-09-2010, 03:50 AM Re: Link CSS with HTML
Skilled Talker

Posts: 60
Name: Dmitry
Trades: 0
Quote:
Originally Posted by umarkal View Post
Hello

Removing # has worked. Thank you for all your help!

I want to have a border to write in it. What is the code?

Is it:

soild {
border-style:solid;
width:879px;
height:500px;
border-width:10px;
}

But that does not work.

Thanks
Border for what part of page? If for body transfer css code from soild style to body. If for other tag use <tag style="soild">what you want</tag>. And in css before soild you need add dot - .solid { yourstyle;}
__________________
Sincerely, Dmitry

Please login or register to view this content. Registration is FREE
ElmanF is offline
Reply With Quote
View Public Profile Visit ElmanF's homepage!
 
Old 11-12-2010, 05:10 AM Re: Link CSS with HTML
Junior Talker

Posts: 3
Name: zaynahblaze
Trades: 0
Try it.
<HTML>
<HEAD>
<LINK href="special.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<P class="special">This paragraph should have special green text.
</BODY>
</HTML>

Last edited by zaynahblaze; 11-12-2010 at 05:12 AM..
zaynahblaze is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Link CSS with HTML
 

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