Click to See Complete Forum and Search --> : Css


merxais
04-23-2004, 05:03 AM
How to make the css sheet for my site?

www.jobcenternews.it/prova.html (http://www.jobcenternews.it/prova.html)

is that possible to make the css now after i did everything? teach me ^^ thanks.

Pittimann
04-23-2004, 05:06 AM
Hi!

Do you mean, to take out the css from your html file and put it into an external css file?

Cheers - Pit

JayDie
04-23-2004, 05:07 AM
Yes, you can make a stylesheet after you finished your site, but...: styles in you document will overrule the stylesheet and if you use <font> tags, they will also overrule the stylesheet...

Go here (http://www.w3schools.com/css/default.asp) to learn CSS

Good Luck!!!

JayDie
04-23-2004, 05:09 AM
Originally posted by Pittimann
Hi!

Do you mean, to take out the css from your html file and put it into an external css file?

Cheers - Pit
Pittimann, you were faster ;)

I think he means that, because he allready uses CSS (if you take a look at the code). But, I see he also uses <font> tags and so, so that will be a problem... (they overrule CSS)

merxais
04-23-2004, 05:13 AM
ahh.. because my site show in Mozila and Opera got problem... so might be need to use CSS..

i think my site need to do all again?

Kor
04-23-2004, 05:19 AM
better bring all your style attributes in one place, an external CSS file say mycss.css

Now remove all the embeded CSS from page and call the external from head like:

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

Now you can modify CSS without opening the web page, using even an ASCII simple editor as Notepad.

NOTE

Remove the identification tags
<style type="text/css"> or <style>
and
</style>
when translating to an external

merxais
04-23-2004, 05:24 AM
i want to do that.. but i am new to this css..
i try... thanks all for the informations
ahh.. as Jay said got problem even i move all the style in HTML? the font tag.. more info about this pls?
regards.

Pittimann
04-23-2004, 05:34 AM
Hi!

Example: if you have text in a div and the css for the div says color:blue;font-family:verdana and your text in the div has a font tag around (like: <font color="#000000" face="Arial">blah</font>) the text will be in Arial and the text color will be black and NOT like the css for your div says...

Cheers - Pit

merxais
04-23-2004, 12:08 PM
i get what u mean..
i know to create a .css file now and it works to link.. but if i want to make also the font then what should i do? i can put the font in the .css file but then cancel the whole page <font>?

Kor
04-23-2004, 12:22 PM
as far as I Know, rules are that local sets will preven.

1. an "local" html tag or CSS markup will prevent

<div class="st"><font color="#999999"> text</font></div>
will make the text color = #999999 nomatter of the class st says

<div class="st" style="color:#999999">text</div>
will make the text color = #999999 nomatter of the class st says

merxais
04-23-2004, 12:46 PM
i think i know how to use css now... like when i put <h> in .css and when i use in html i start with <h> right? :D and cancel all the <font> and so on ;)

forgot to say... thanks for all ur help guys! very appreciated.. hehe

TimeBandit
04-24-2004, 01:57 PM
I don't have a PC so someone will have to check this in IE6->5.0. Might be 3px jog in the center. there were probs in the datebar area in MacIE so might be on a PC as well:
http://www.johnbarrick.com/test/merxais/round01/index.html

Kor
04-26-2004, 01:43 AM
On my PC

NS7, Firefox and Moz 1.7 show the bordered div horizontally centered.

But...IE6 show it left aligned... (same left position with the text above)

TimeBandit
04-26-2004, 05:36 PM
Originally posted by Kor
But...IE6 show it left aligned... (same left position with the text above)

Thanks. I think he'll need to do the combo, margin-left: auto, margin-right: auto plus text-align: center. Some browsers do the text-align thing and other slisten to the margin:auto thing.