PDA

View Full Version : Text part of script won't center


Omni
11-13-2005, 06:29 PM
My blog is here

http://omniverse.blogspot.com/

and if you look in the sidebar you'll see a box containing a list of what cities my recent visitors are from; the code is supposed to center the cities within the box, but as you'll see they're right-justifying in mine, which looks pretty bad. I assume this is somehow caused by my having a div command that right-justifies all the sidebar elements... but who ever heard of that affecting the text within a script? :supereek:

What I need is a way to keep the box itself right-justified in the sidebar, but have the text inside it centered as the original code is supposed to do; does anyone know a way to do that?

Thanks!! :)

_Aerospace_Eng_
11-14-2005, 12:05 AM
Why do you even have that div align="right there? You can use this for the sideBar CSS and get rid of that align="right" div
div#sideBar{margin:0px;padding:0px 10px 14px 64%;text-align:left;}

Omni
11-14-2005, 12:36 AM
I have that div command because when I asked for help getting things to right-align in my sidebar, that's the only thing among the suggestions I was given that worked... what in the code you gave would cause a right-alignment, and what's that other stuff for?

Do you have any ideas about the centering issue? :)

_Aerospace_Eng_
11-14-2005, 12:43 AM
You should be able to edit the CSS for your blog. The div that contains your buttons and scripts is called sideBar.
div#sideBar{margin:0px;padding:0px 10px 14px 72%;text-align:center;}
Can be used to align your stuff to the center. You would need to get rid of that div that has align="right" in it.

Omni
11-14-2005, 01:05 AM
As I said, I don't want anything centered in the sidebar, I want it all right-justified as it is now; the only thing I'm trying to center is the text from that one javascript... do you know how to do that? :)

_Aerospace_Eng_
11-14-2005, 01:09 AM
Okay, I don't even see that particular javascript in Firefox. The only links I see on the sidebar are the archive and links section.

Omni
11-14-2005, 01:27 AM
There are 35 items other than the links and archives sections in my sidebar; some are scripts, some are text links, some have images... if you can't see any of that, that's a little odd. =:O

The script for the item under discussion is

<script language="JavaScript" src="http://mapstats.blogflux.com/display.php?id=59&width=165&padding=15&title=Recent Visitors&title_color=000000&bg_color=FFFFFF&link_color=660099&border_color=000000&cities=15&font_size=12&double_space=0" type="text/javascript"></script>

Do you know a way to make the text generated by this code be centered? :)