Log In · Register

 
 
Closed TopicStart new topic
Bold text doesn't work. =/
nuclear
post May 5 2008, 05:35 PM
Post #1


hotcakes. <3
***

Group: Member
Posts: 39
Joined: Dec 2005
Member No: 320,675



This is the code I use for my bold text:

CODE
.blogbody b, .standard b, p b, strong {
/* [edits bold text] */
font-weight:bold;
font-size:10px;
font-family:arial;
color: #FF008E;}


But whenever I bold something in a new weblog entry, it just shows up as bold, and not the colour and style I have in my CSS.
What did I do wrong? <3
 
venti-anemoi
post May 5 2008, 06:03 PM
Post #2


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



That's 'cause the Xanga weblog editor thing is weird and annoying hammer.gif

If you use the bold stuff in the regular editor, then click "edit HTML," it'll show <span style="font-weight: bold;"> and </span> instead of <b> and </b>.

I'm not entirely sure how to fix it (maybe in your CSS define "span b"?) but normally I just type my entry in the HTML editor and use <b> </b> tags.

Hope that helps.
 
nuclear
post May 5 2008, 06:07 PM
Post #3


hotcakes. <3
***

Group: Member
Posts: 39
Joined: Dec 2005
Member No: 320,675



Crap. >_< I didn't really want it to take that long to do that, haha.
Is there a way I can edit a <span> that does that?
 
venti-anemoi
post May 5 2008, 07:01 PM
Post #4


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



Hang on a sec; lemme experiment ;]

lah dee dahh, funn :D

//edit.

Okay, here's what I found out. [I'm hoping you know basic HTML, because otherwise this won't make much sense to you.]

I did some research on the <span> tag, and the problem is that it doesn't affect anything unless you define it like this: <span style="whatever whatever;">. That means that even if you define something in your stylesheet like this:

CODE
<style type="text/css">
span b, span strong
{font-color: #FFFFFF;}
</style>


it won't work. You can only define span in the stylesheet like so:

CODE
<style type="text/css">
span
{font-color: #FFFFFF;}
</style>

(You don't need to put "font-weight" because the xanga editor will automatically do that for you.)

The problem with this is that it'll affect anything in your text that's in a <span> tag. For Xanga, I'm pretty sure this only means bolded text, italic text, underlined text, and strikethrough text. This means that if you do define the span tag like above, all of your bold/italic/underline/strikethrough text will be the same color. And I dun think you can make it any different. <_<

Hope that made sense.

This post has been edited by dreamstar7: May 5 2008, 07:22 PM
 
nuclear
post May 12 2008, 04:31 PM
Post #5


hotcakes. <3
***

Group: Member
Posts: 39
Joined: Dec 2005
Member No: 320,675



Ah, thanks.
I wish there was a way to make them all different, but I guess I'm out of luck..

If anybody figures anything out, I'd love to hear it, 'cause I'm lazy when it comes to blogging.
 
emberfly
post May 21 2008, 10:01 PM
Post #6


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



can't you simply edit them in the entry editer? that would make then different..
 
venti-anemoi
post May 21 2008, 11:51 PM
Post #7


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



QUOTE(emberfly @ May 21 2008, 08:01 PM) *
can't you simply edit them in the entry editer? that would make then different..


He says he's lazy. :D Can't blame him, though. The Xanga editor thing is stupid; I'd like a way to change all of my bold/italic/underline text without having to go out of my way every time I bold/italic/underline something, thankyouverymuch.
 
emberfly
post May 22 2008, 09:52 PM
Post #8


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



^ that's very possible.

CODE
i, em {
color:COLORRRRRRR;
}


CODE
u {
color:COLORRRRRRR;
}


CODE
s {
color:COLORRRRRRR;
}
 
venti-anemoi
post May 23 2008, 10:24 PM
Post #9


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



Yes, but it doesn't work because the xanga editor puts <span> tags around bolded text. Instead of <b> and </b>, it'll put "<span style="font-weight: bold;">bold text here</span>".

Didn't I already explain all this in my second post?
 
emberfly
post May 24 2008, 11:08 PM
Post #10


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



your post confused me.

I never have problems with that because, when I'm in the editor, I highlight the text I want bolded and hit ctrl+B.
 
venti-anemoi
post May 26 2008, 03:57 PM
Post #11


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



QUOTE(emberfly @ May 24 2008, 09:08 PM) *
your post confused me.

I never have problems with that because, when I'm in the editor, I highlight the text I want bolded and hit ctrl+B.


Oh, sorry. I didn't mean to make it so unclear. <_<

For me, when I do that, it'll make the text bolded/underlined/italicized, but it won't make it the color(s) I want it (the ones I specified in the stylesheet). I have to go to "edit HTML" and manually insert the bold tags and stuff. o_O
 
emberfly
post May 26 2008, 10:16 PM
Post #12


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



owie that sucks.
 
manny-the-dino
post Aug 15 2008, 02:27 PM
Post #13


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Due to this topic being 2 weeks old & the problem being solved, this topic is Closed & Moved. PM me if you'd like for me to open this. _smile.gif
 

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