Log In · Register

 
no text, in divs
mary45
post Sep 9 2006, 01:12 AM
Post #1


kristen
**

Group: Member
Posts: 23
Joined: Aug 2006
Member No: 449,121



okay well i make divs with the version 1.0 tutorial on here and i used one of the css version on createblog but when i have this code:
CODE
<div class="content" style="position: absolute; left:000px; top:000px; width:0000px; height:000px; overflow: auto;">

i want to change the font size or font family on just part of the div or on a few wrods and i use
CODE
<font size=number>
he text dissappers in that div section

is there a way to change the font size or font family without having to change the whole css stylesheet?



ermm.gif hehe sorry if thats a bit confusing _unsure.gif
 
 
Start new topic
Replies
*Azarel*
post Sep 9 2006, 01:28 AM
Post #2





Guest






For the first section coding to be correctly coded, change it to this (I bolded what I changed):
<div class="comment" style="position: absolute; left:536px; top:591px; width:214px; height:40px; overflow: auto; text-align: center;">
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
</div>

There's a way you can within the CSS, not the div layers. Since you seem not to want to post your coding/myspace, try inserting this:

<style type=text/css>
.comment {
font-family: Georgia;
font-size: 7;
}
</style>

Customize accordingly, but that text will change all the text within div layers classed as "comment." By simply using the coding that I edited, there's no reason that your text would be disappearing.. unless you have some malicious css.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: