Log In · Register

 
 
Closed TopicStart new topic
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
 
*Azarel*
post Sep 9 2006, 01:15 AM
Post #2





Guest






Hm.. do you have a link to your myspace so I could take a lok at your coding? You can change the font size and font family within the css without changing everything, but I'd have to look at your coding.
 
mary45
post Sep 9 2006, 01:23 AM
Post #3


kristen
**

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



well this is how i don my coding for all sections :
CODE
<div class="comment" style="position: absolute; left:536px;  top:591px; width:214px; height:40px; overflow: auto;"><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>

and you can see the words just fine

but when i want to chane the text i do this:
CODE
<div class="comment" style="position: absolute; left:536px;  top:591px; width:214px; height:40px; overflow: auto;"><center>
<font size=7>text text text <font family=georgia>text text </font>
<div>

the text dissappers ermm.gif
 
Relentless
post Sep 9 2006, 01:24 AM
Post #4


sang loves hayden.
*******

Group: Staff Alumni
Posts: 3,373
Joined: Feb 2004
Member No: 5,687



I know what you mean.

When you add <font size=number> text.. don't you have to close the tag.. like </size> i believe. or </font>. I think it's more </size>
 
freeflow
post Sep 9 2006, 01:25 AM
Post #5


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



I'm pretty sure I might no why, but I need a link or codes. All the codes not that part.
 
*Azarel*
post Sep 9 2006, 01:28 AM
Post #6





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.
 

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