return to tranceaddict TranceAddict Forums Archive > Archives > Classic old threads / Inactive Forums > Retired Forums > Frequently Asked Questions / Tutorials / How do I?

 
how do i ?
View this Thread in Original format
Technaut
i have loads of webpages which i need to change the background colours and text colour etc

is there a quick way of doing this ?
jon
Its all about the style sheets. They are a small text file which contains all formating infomation, heres the one ive used for my home page
code:
BODY { BACKGROUND-COLOR: #000890 } TD.titlebar { BACKGROUND-COLOR: #3ff8ff } TD.linkbar { FONT: 8pt Verdana; COLOR: white; BACKGROUND-COLOR: #1f4ff0 } TABLE.content { BORDER-RIGHT: white 1px solid; BORDER-TOP: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-BOTTOM: white 1px solid } A.links:link { FONT: bold 8pt Verdana; COLOR: white; TEXT-DECORATION: none } A.links:visited { FONT: bold 8pt Verdana; COLOR: white; TEXT-DECORATION: none } A.links:hover { FONT: bold 8pt Verdana; COLOR: white; TEXT-DECORATION: underline } A.links:active { FONT: bold 8pt Verdana; COLOR: white; TEXT-DECORATION: none } A.email:link { FONT: 10pt Verdana; COLOR: #3ff8ff; TEXT-DECORATION: none } A.email:visited { FONT: 10pt Verdana; COLOR: #3ff8ff; TEXT-DECORATION: none } A.email:hover { FONT: 10pt Verdana; COLOR: #3ff8ff; TEXT-DECORATION: underline } A.email:active { FONT: 10pt Verdana; COLOR: #3ff8ff; TEXT-DECORATION: none } .content_title { FONT: bold 10pt Verdana; COLOR: black } .content_text { FONT: 10pt Verdana; COLOR: white } .copyright { FONT: 8pt Verdana; COLOR: white }


and in the actual html file ive got
code:
< LINK href="files/ stylesheet.css" type=text/css rel=stylesheet >

(to keep the dam forums happy i had to insert a space after < , before stylesheet.css and before the > , dam things reading as html when its not allowed to:whip:

In between and
so any colour/font/size etc can be changed with just one file to be edited then all the paged that link to the style sheet will be changed
just do a google search for style sheets for shed loads of info, you can also get style sheet editors (i think the home suite package has an integrated one):whip:
Technaut
you sir, make me feel rude :D


*goes off to with is webpages*
jploveparade
Keep up the good work Stuart
Technaut
stuart? my name is brian and im from latvia!
kaffeine4nrg
... is to change your html files to a txt file then go to word pad then click on "edit" then "replace" then in the find what section enter the color code and replace it with a new color code in the "replace with what" box. you would have to do it with every page though and if you wanted to replace only one aspect of your webpage coloring but there are other parts that have the same color then it would replace every color code. for an example, say you have something in text that is red, FF0000, and you wanted to change it to black it would change everything to black including the visited links (assuming that you have them as red).
i hope that i helped you out and didn't waste your time.
itsTrueSonic
i think the easiest way is to either use CSS sheets or just script it (PHP, Java, etc...)
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement