|
Answer» Hi there, IM trying to change the font color on a "about me" page on an auction site, and there are a few pieces of text that excaped my commands. My backgroung is black and the font is black, so its quite bothersome. I tried to change all of the font to certain shades of orange so I DONT WANT all the font to be one color, but if I have to...I will.
Thanks alot, any help and or suggestions would be wonderful!
ZadaEasily. With CSS, anything is possible. Open Notepad, and enter the following:
p.orange { color: orange; }
and save it as a CSS file. For this example, I'll call it master.css. In the tags of your HTML, include this line:
Change "master" to whatever you called the CSS file.
At the paragraph you want to be orange, change the tag to . Leave the alone.How exactly do I save it as a css file? Should this be an option, or are you saying to call or "name it" it a css file.
Thanks for your help! I mean save it with a .css extension. I wrote a brief tutorial here on saving with other extensions than .txt. gah, I see what to do, but its still not working. Probably from years of habit of "not being smart."Which is not working? The saving as .css or the rendering on the page?I saved it fine, but it's not showing up on the page.Don't forget the between the tags, and to modify the needed to say
If you did these things, please post the HTML code for the page.Im absolutely confused now...OK. Please copy the HTML code for that page and post it. I'll check it out.The actual code is from a generator from Mygen.co
So Im not seing where to put the <link> Maybe if I just ignore the generating crapola and just do it myself, It will be easier. The generator is only useful when you need a few things done at once...Gah! >.<
Um, yes, that might be it. Manual editing is a little harder, but it's worth it in the end, since it gives much greater power. Sigh, Really don't even know where to start now... :-/
Thank you for all your help!!! I really apperciate it!!
-ZadaWell, if you need to start over (may be a healthy thing for a web design) you can always take a look at HTML tutorials:
http://www.w3schools.com/html/
That's the official W3C tutorial set, so it will make sure the code entered is good for most browsers. Take a read-through and feel free to let us know if you have questions/issues.
-DilbertIf we're instering code into an "About Me" page on an auction site, then there is little chance we'll have access to the HEAD tags. So instead, the sensible option is to include STYLE tags WITHIN the HTML.
In answer to the above question, this should ideally go at the start of the HTML:
<***style> p.orange { color: orange; } <***/style> then, the relevant paragraphs will be like this:
<p class='orange'> This paragraph is orange. </p>
NB: delete the ASTERISKS (*) in the above example. They are required in order to bypass this forum's anti-script filter.Yay! I just fixed it earlier today, but thanks for your help too Robpomeroy! Thats how I fixed it though Glad to hear it's working properly. Yeah, its good now! I don't really trust generators to begin with, but Im soooo lazy its incredidble recently. Thanks for all the help from you two!
|