CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 21st, 2003, 01:16 PM
jallard jallard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 16 jallard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jallard
Angry "i Do Not Understand How Css Works With Html."

The problem here is, "I DO NOT UNDERSTAND HOW CSS WORKS WITH HTML."

I looked over WebMonkey and while it shows you were to embed it. It doesn't explain how it works with an existing HTML page with tables.

To apply a .css stylesheet ("style.css" in the example below) to an HTML page, a <link> tag is added to the page header:

"<head>
<link rel="stylesheet" href="style.css" type="text/css">
</head>"


Am I not getting my point across?

Why can't anyone explain that to me?

Last edited by jallard : August 21st, 2003 at 01:18 PM.

Reply With Quote
  #2  
Old August 21st, 2003, 01:48 PM
Swobodin's Avatar
Swobodin Swobodin is offline
Another Vagabond Using Knoppix
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 73 Swobodin User rank is Corporal (100 - 500 Reputation Level)Swobodin User rank is Corporal (100 - 500 Reputation Level)Swobodin User rank is Corporal (100 - 500 Reputation Level)Swobodin User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 10 m 6 sec
Reputation Power: 6
Send a message via ICQ to Swobodin
Normally, Stylesheet should work unless target file is not correct. u can also type
Code:
<head>
<style>
/*copy your stylesheet content here */
</style>
</head>

Last edited by Swobodin : August 22nd, 2003 at 01:38 AM.

Reply With Quote
  #3  
Old August 21st, 2003, 02:11 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
are you confused on how since it's not an 'inlined' css you don't understand how all objects inherit the porperties the css gives to the page?

well you understand the inlined css right? when you do a css stylesheet include like that, even though it doesn't appear in the tags (except the class), they're assumed to be there, it's passed onto all uhhh object i guess i'd call them on the page with the css listing.

Last edited by unatratnag : August 21st, 2003 at 02:38 PM.

Reply With Quote
  #4  
Old August 21st, 2003, 02:23 PM
metro metro is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Quazar
Posts: 208 metro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 36 sec
Reputation Power: 6
A style sheet can only been seen working if it's connected to an orginal html tag. That's the connection.

Here's an example.
in your styles.css file you have this.

.regulartext {
font-size: 10px;
font-face: verdana;
}

ok. I hope you understand the styles end of it.

now, this is what's in your html document (I'll give you 2 examples)

example 1 - With tables
PHP Code:
<html>
<
head>
<
link rel="stylesheet" href="style.css" type="text/css"
</
head>
<
body>

<
table>
 <
tr>
   <
td class=regulartext>
      
This text will be formatted the way you stated in your style sheet.
    </
td>
  </
tr>
</
table>

</
body>
</
html


example 2. just text
PHP Code:
<html>
<
head>
<
link rel="stylesheet" href="style.css" type="text/css"
</
head>
<
body>
  
 <
span class=regulartext>
This text will be formatted the way you stated in your style sheet.
  </
span>

</
body>
</
html



Do you get it now?

Reply With Quote
  #5  
Old August 21st, 2003, 04:11 PM
jallard jallard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 16 jallard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jallard
Thumbs up Finally someone understood!

I cannot say that I fully understand, because I don't. However, the code model is a tremendous help. Thank you ever so much. I really do appreciate your time and effort to help me understand.

You Rule!!!!

Reply With Quote
  #6  
Old August 21st, 2003, 04:23 PM
metro metro is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Quazar
Posts: 208 metro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 36 sec
Reputation Power: 6
Is there any particular part you need help with or don't understand?

Basically, all you doing is setting attributes in another file and pulling them out whenever you need them?

So say i was writing an example to show someone how css works. First I write a little bit explaining what I'm doing then I show the person what I just mentioned. Now, I don't want my example being in the same writing as my normal writing, soooooo I make it colour coded so it's easier to read. (I hope you see where I'm going with this). That is call done by Css.

Reply With Quote
  #7  
Old August 21st, 2003, 04:30 PM
jallard jallard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 16 jallard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jallard
Thanks I think I have it now.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > "i Do Not Understand How Css Works With Html."


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway