Free Web Hosting Forum
(#1)
Old
joey73101 joey73101 is offline
Junior Member
joey73101 is on a distinguished road
 
Posts: 2
Join Date: Mar 2012
Default How do I get CSS to work? - 03-27-2012, 04:54 PM

I have designed a CSS website and when I go to the webpage it displays the code instead of the design.
Is there a fix for this yet?
Reply With Quote
(#2)
Old
Leder678's Avatar
Leder678 Leder678 is offline
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,808
Join Date: Jan 2009
Location: Norway
Default 03-27-2012, 05:14 PM

type the CSS code inside <style type="text/css"></style>
Like this:
Code:
<style type="text/css">
body {
 color:#CCC;
 font-family:arial;
 font-size:15px;
}
</style>


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote
(#3)
Old
joey73101 joey73101 is offline
Junior Member
joey73101 is on a distinguished road
 
Posts: 2
Join Date: Mar 2012
Default 03-27-2012, 06:32 PM

Quote:
Originally Posted by Leder678 View Post
type the CSS code inside <style type="text/css"></style>
Like this:
Code:
<style type="text/css">
body {
 color:#CCC;
 font-family:arial;
 font-size:15px;
}
</style>
Oh thanks.
I'm a new CSS programmer and the site I learned from didn't provide this...
Reply With Quote
(#4)
Old
Leder678's Avatar
Leder678 Leder678 is offline
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,808
Join Date: Jan 2009
Location: Norway
Default 03-27-2012, 06:43 PM

Note that that is only if you have the CSS inside HTML files
inside .css files, you do not use <style></style>

When you define something in CSS, you need a tag with that id or class that is the same as the CSS you defined (e.g. you may do:
div { color:black; }
then you need at least one <div> tag to see the result.)


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote
(#5)
Old
willettmatter willettmatter is offline
Member
willettmatter is on a distinguished road
 
Posts: 61
Join Date: Jan 2012
Location: Idaho
Default 03-28-2012, 03:59 PM

w3schools has some great tutes on css and css3.
http://www.w3schools.com/css/default.asp


willettmatter.com
Reply With Quote
Reply

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com