Help - Search - Members - Calendar
Full Version: Bold text doesn't work. =/
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
nuclear
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
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
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
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.
nuclear
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
can't you simply edit them in the entry editer? that would make then different..
venti-anemoi
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
^ that's very possible.

CODE
i, em {
color:COLORRRRRRR;
}


CODE
u {
color:COLORRRRRRR;
}


CODE
s {
color:COLORRRRRRR;
}
venti-anemoi
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
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
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
owie that sucks.
manny-the-dino
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.