Nov 21, 2009

Html/css Font Color - appling to the whole page

free web hosting
Open Discussion > MODERATED AREA > The Internet > Web Design

Html/css Font Color - appling to the whole page

cemeteryrecords
Here's my page:

CODE
<html>
<head>
<title>FreakbooK</title>
</head>
<body bgcolor="#000000">

<style type="text/css">
h1 {color: rgb(255,0,0)}
h2 {color: rgb(255,0,0)}
p {color: rgb(255,0,0)}
</style>

<center>

<h1>FreakbooK</h1>
</center>
HollA At ThE WorlD! -
<a href="addguest.html">Add</a> To ThA FreakbooK!
<hr>
<!--begin-->


<hr>
<ul>
<li><a href="../">BacK HomE PagE</a><br>
</ul>
</body>
</html>


when people add a message, it appears right below the "begin" part

but how do i make it so all added text is red? cause its black by default, and so is the background..
i got the heading red, and links are blue. but i cant figure out reguar font. sad.gif

 

 

 


Comment/Reply (w/o sign-up)

jlhaslip
Set your default font-color in the body rule.
CODE
body { font-color: #cccccc; }

If you need/want a certain section to change from the default, add another rule.
CODE
div#section p.hello { font-color: #c845d7; }


*edit*

and the < style > </style> tags belong in the head of the page.

Comment/Reply (w/o sign-up)

cemeteryrecords
Worked Great, Thanks!

Comment/Reply (w/o sign-up)

Araerker
Another thing, you can change the font with the same way that you changed the color:
CODE
p {font-family:digifacewide;}

Between the style tag.

Oww and if you wanna change the color or the size of only one sentence you can use the code:
CODE
<p style="font-size:40px; font-family:blackadder itc;"> Put your diferent text here </p>

Comment/Reply (w/o sign-up)

triplebtalk
A way to change it is to apply a specific class or ID to the text, it will make your website look a lot neater and you will find it easier to use. It adds quite a bit of control:

.comments p {
font-color: #CCCCCC;
}

then in your html you can put the area which holds the comments in that class:

<div class="comments">
<p>insertcommentshere</p>
</div>

Comment/Reply (w/o sign-up)

(G)

 

Chapter 6: RealText Markup

With RealText, you can create timed text presentations that can stream alone or in combination with other media such as audio or video. This makes RealText a handy means for adding text to SMIL presentations. Using RealText, you can add subtitles to a video, for example, or provide closed-captioning. This chapter explains the RealText markup. Appendix E provides a reference for RealText tags and attributes.

Understanding RealText

Using any text editor, you can create a RealText clip in a text file that uses the file extension .Rt. The file includes the text you want to display, as well as the RealText markup that describes how to display and time the text. Like a RealVideo or Flash clip, a RealText clip has a height and width, as well as an intrinsic duration, from a few seconds to several hours. The following are some of the features that RealText provides:

  • Font, size, and color control

    The RealText markup lets you create text in many different fonts, sizes, and colors.

  • Timing control

    RealText timing commands control when each paragraph, sentence, word, or letter appears. You might display a new sentence every few seconds, as in a video subtitle. Or you could make letters appear one at a time as if they were being typed across the screen.

  • Flowing text

    Within a RealText clip, words can scroll up the screen or from side to side. This lets you create a window of smoothly flowing text. You can even make text loop, creating an endlessly flowing marquee.

  • Positioning commands

    With the optional positioning commands, you can control exactly where each word appears within the RealText window.

    View it now! (requirements for viewing this sample)
    Play this sample to view an example of RealText.

RealText Language Support

RealText supports a number of languages, including English, Chinese, Korean, Japanese (Kanji), and many European languages. It can stream text in any language that can be written in one of its supported character sets, which are listed in the section "Specifying the Character Set". Each character set supports at least one font, as described in "Setting the Font".

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)


Searching Video's for Html/css, Font, Color
See Also,
advertisement


Html/css Font Color - appling to the whole page

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com