|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 | |
|
Confirmed User
Join Date: Jun 2004
Posts: 689
|
CSS Help
This stylesheet works when I have it directly on the webpage, however if I save it as a .css and link it some tags doesn't work, like the font-family body tag.
Any ideas why not? Quote:
|
|
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Calgary, Canada
Posts: 4,012
|
Not sure, but try using the 'font' tag to specify the font...
font:bold 10pt verdana; for example... Make sure you don't have style tags overwriting your classes |
|
|
|
|
|
#3 |
|
ex-TeenGodFather
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
|
You need to remove the <style type="text/css"> line and
</style> Then you need to link to that stylesheet from the page you want to use it on, like so: <link rel="STYLESHEET" href="style/default.css" type="text/css">
__________________
..and I'm off. |
|
|
|
|
|
#4 | |
|
Confirmed User
Join Date: Jun 2004
Posts: 689
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
Confirmed User
Industry Role:
Join Date: Nov 2005
Posts: 8,170
|
Quote:
Code:
<style type="text/css" media="screen">
@import url("style.css");
</style>
Also, to make your code cleaner you check out the short hand of FONT: http://www.w3schools.com/css/css_font.asp |
|
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Jun 2004
Posts: 689
|
Hmm, just checked my page in IE and now it works, looks like a firefox issue.
|
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: Nov 2005
Posts: 8,170
|
Tested in Firefox & IE
style.css
Code:
body {
margin-top:0;
padding-top:0; /* Opera */
background-color:#000;
}
body, td, th {
font:normal 12px/14px Verdana, Arial, Helvetica, sans-serif;
}
a {
text-decoration:underline;
color: #0000ff;
}
a:hover {
text-decoration: none;
}
/* Classes */
.topads {
font:normal normal bold 16px/18px Verdana, Arial, Helvetica, sans-serif;
color:#fff;
}
.whitebold {
color:#fff;
font-weight:bold;
}
.blackbold {
color:#000;
font-weight:bold;
}
.smallheading {
font:normal normal bold 16px/18px Verdana, Arial, Helvetica, sans-serif;
color:#000;
}
.normal {
font:normal 12px/14px Verdana, Arial, Helvetica, sans-serif;
}
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
@import url("style.css");
</style>
</head>
<body>
Code here
</body>
</html>
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Jun 2004
Posts: 689
|
Still now getting it to work on my page
Care to hit me up on ICQ? 21-956-857 |
|
|
|
|
|
#9 |
|
Confirmed User
Join Date: Jun 2004
Posts: 689
|
fallenmuffin's code worked great!! The guy saved my day
|
|
|
|
|
|
#10 | |
|
Confirmed User
Industry Role:
Join Date: Nov 2005
Posts: 8,170
|
Quote:
|
|
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
|
Next time read a manual before blaming your problem on browsers.
|
|
|
|