Unregistered Avatar

Reply

CSS Query


 
LinkBack Thread Tools Display Modes

  #1 (permalink)  

Old 02-06-2005, 03:56 AM

Question CSS Query

Hello, I know I could probably find a tutorial on the Internet but sometimes I find it better to just ask people who can answer my specific questions. Anyway, I am a rookie with HTML and I have heard good things about 'CSS' and I just had a couple of queries:

1. What is the basic CSS code to have your background color/font style-colour-size already done? Once this is done it will make for example your font 'Verdana size '2'' for the whole HTML document?

2. Does CSS also affect the text & colours within tables?

Thanks for your time.

DM
__________________
I still remember the world
From the eyes of a child
Slowly those feelings
Were clouded by what I know now ...
D M

D M is offline registered.

D M's Avatar

Join Date: Feb 2005

Posts: 11

  #2 (permalink)  

Old 02-06-2005, 10:15 AM

If you want to add it to the whole document, apply the css styles to the body & html tag. The body will usually work but not in every browser thats why we need the html tag as well.
HTML Code:
<style type="text/css">
body, html {
font: Verdana;
font-size: 12pt;
color:#ffffff;
}
</style>
And to answer your second question. Css and html 4.0 (xhtml as well) were not meant to be marked up with tables. This means that you need to structure your document with better markup. These being <div>, <p>, <span>, <h1>,<h2>,<h3>,<ul>,<li> and some others i cant think of.

You can do almost anything a table can do with <div>'s, in alot less code.
__________________
Audi Videos | MySpace Layouts | About Me

missionsix is offline loves you.

missionsix's Avatar

Join Date: Feb 2004

Location: under you.

Posts: 4,774

Send a message via AIM to missionsix Send a message via MSN to missionsix

  #3 (permalink)  

Old 02-06-2005, 10:17 AM

Thank you very much Sicloan.
__________________
I still remember the world
From the eyes of a child
Slowly those feelings
Were clouded by what I know now ...
D M

D M is offline registered.

D M's Avatar

Join Date: Feb 2005

Posts: 11

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New CSS Tut & SOTW missionsix Discussion Lounge 2 07-16-2005 01:29 PM
Tutorial: CSS Float / DIV jd-inflames Website Design 4 02-17-2005 09:22 PM


All times are GMT -7. The time now is 04:33 AM.