|
|
#1 |
|
Daemon Poster
Join Date: Jun 2009
Posts: 768
|
Just fyi, the extent of my html knowledge is in a book i got for 25 cents from a garage sale...
Using styles, how do I apply a font to an entire page? What I've been trying using: Code:
<STYLE TYPE="text/css">
body
<!--
{
font-family:sans;
}
-->
</STYLE>
__________________
Athlon II x2 255 @ 3.1ghz | 4 gb ddr3 ram| 500+80 gb wd hd | Sapphire 5450 | Win7 | Hanns G 20" Toshiba Satellite | Core2Duo @ 2.0 ghz | 3gb ram | 250 gb hd | lolintelgma | Ubuntu 10.04 |
|
|
|
|
|
#2 |
|
Fully Optimized
|
It is 2 oclock in the morning so i might be missing something but i can say at least that you should remove the <!-- and --> as there render the code inside them as disabled, and should only be used to wrap round comments
__________________
New laptop: 2.1 Ghz Core 2 Duo processor :: nVidia GT150m :: 15.6" HD LCD :: 4gb RAM :: 320gb HDD New player: iPhone 4 32gb |
|
|
|
|
|
#3 |
|
Site Team
Join Date: Jul 2009
Posts: 2,629
|
The above reply is correct as far as I see
![]() One other point - you should always write your tags / attributes in lower case these days. It never used to matter and so everyone used to use upper case (years and years ago) however XHTML requires them to be in lower case and that's been the standard for a fair while now. |
|
|
|
|
|
#4 |
|
Daemon Poster
Join Date: Jun 2009
Posts: 768
|
Thanks for the help, it still seems to work with the <--comments-->
I put the 'body' in the comments and it worked out. Berry, thanks for the modernization tip, my book is from sometime in the 90's so I may be a little dated.
__________________
Athlon II x2 255 @ 3.1ghz | 4 gb ddr3 ram| 500+80 gb wd hd | Sapphire 5450 | Win7 | Hanns G 20" Toshiba Satellite | Core2Duo @ 2.0 ghz | 3gb ram | 250 gb hd | lolintelgma | Ubuntu 10.04 |
|
|
|
|
|
#5 | |
|
Site Team
Join Date: Jul 2009
Posts: 2,629
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Daemon Poster
Join Date: Jun 2009
Posts: 768
|
Quote:
__________________
Athlon II x2 255 @ 3.1ghz | 4 gb ddr3 ram| 500+80 gb wd hd | Sapphire 5450 | Win7 | Hanns G 20" Toshiba Satellite | Core2Duo @ 2.0 ghz | 3gb ram | 250 gb hd | lolintelgma | Ubuntu 10.04 |
|
|
|
|
|
|
#7 |
|
Site Team
Join Date: Jul 2009
Posts: 2,629
|
Personally I'd recommend validating all the pages you write with XHTML to make sure they're ok in modern times - the validator will generally complain quite loudly if they're not which should stop you getting into any bad habits
|
|
|
|
|
|
#8 |
|
Daemon Poster
Join Date: Jun 2009
Posts: 768
|
Holy Cow! 12 errors and 16 warnings... is that alot for 80 lines of html?
I need to get a modern book...
__________________
Athlon II x2 255 @ 3.1ghz | 4 gb ddr3 ram| 500+80 gb wd hd | Sapphire 5450 | Win7 | Hanns G 20" Toshiba Satellite | Core2Duo @ 2.0 ghz | 3gb ram | 250 gb hd | lolintelgma | Ubuntu 10.04 |
|
|
|
|
|
#9 |
|
Fully Optimized
|
Simply put... Yes that's a lot a lot
__________________
New laptop: 2.1 Ghz Core 2 Duo processor :: nVidia GT150m :: 15.6" HD LCD :: 4gb RAM :: 320gb HDD New player: iPhone 4 32gb |
|
|
|
|
|
#10 | |
|
Site Team
Join Date: Jul 2009
Posts: 2,629
|
Quote:
HTML / XHTML has changed a LOT since the mid 90s!However, if you fancy pasting the HTML here then I'll take you through what the warnings /errors mean ifya like
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|