![]() |
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:
|
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 |
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"> |
Quote:
|
Quote:
Code:
<style type="text/css" media="screen">Also, to make your code cleaner you check out the short hand of FONT: http://www.w3schools.com/css/css_font.asp |
Hmm, just checked my page in IE and now it works, looks like a firefox issue.
|
Tested in Firefox & IE
style.css
Code:
body {Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
Still now getting it to work on my page :(
Care to hit me up on ICQ? 21-956-857 |
fallenmuffin's code worked great!! The guy saved my day :)
|
Quote:
|
Next time read a manual before blaming your problem on browsers.
|
| All times are GMT -7. The time now is 11:58 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123