Log In · Register

 
2 Pages V   1 2 >  
Closed TopicStart new topic
Center Text in blog body, How do you do it?
lpdrummer
post Jun 8 2005, 06:14 PM
Post #1


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



I am trying to center the text on my blog bodyhere

I have heard that this is the code-

<style type='text/css'>div{text-align: center;}</style>

But am confused as how to put it in my code, which is this-


Can anybody give me a few pointers?
 
lovescream
post Jun 8 2005, 06:17 PM
Post #2


define our lives for us.
********

Group: Staff Alumni
Posts: 11,656
Joined: Aug 2004
Member No: 43,293



try this?



i got it from the stylesheet for boxed entries;
http://www.createblog.com/forums/index.php?showtopic=13487
 
talcumpowder
post Jun 8 2005, 06:21 PM
Post #3


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



The code centers all text in a div. Any div. If you're using a div to move the blog though, you would have to use table.blogbody, because it's in a table.... =S That doesn't really make sense, nevermind.
Adding align="center" to your div code doesn't work?
 
lpdrummer
post Jun 8 2005, 06:28 PM
Post #4


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jun 8 2005, 7:21 PM)
The code centers all text in a div. Any div. If you're using a div to move the blog though, you would have to use table.blogbody, because it's in a table.... =S That doesn't really make sense, nevermind.
Adding align="center" to your div code doesn't work?

*


Like this?
<!-- begin code provided by createblog.com -->
<div style="overflow: auto; width: 274px; text-align: center;align="center"; height: 527px; margin-top: -265px; margin-left: 7px;">
<!-- end code provided by createblog.com -->
 
talcumpowder
post Jun 8 2005, 06:29 PM
Post #5


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Like this.
CODE
<div align="center" style="overflow: auto; width: 274px; height: 527px; margin-top: -265px; margin-left: 7px;">
 
lpdrummer
post Jun 8 2005, 06:39 PM
Post #6


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



Still dosent work....

Check it Out. I would like to have the text in the middle of the blog body so I don't have to scroll left to read it (Like I do now -_- )
 
talcumpowder
post Jun 8 2005, 06:42 PM
Post #7


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



That won't make any diffrence. Your problem is the blog has no defined width.
 
lovescream
post Jun 8 2005, 06:42 PM
Post #8


define our lives for us.
********

Group: Staff Alumni
Posts: 11,656
Joined: Aug 2004
Member No: 43,293



try using this to remove that big space. O_O

 
lpdrummer
post Jun 8 2005, 07:50 PM
Post #9


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jun 8 2005, 7:42 PM)
That won't make any diffrence. Your problem is the blog has no defined width.

*


OOOOHH! Thank yooou! What should I set it too? about 270 since my blog div width is 274? And then put in the code spirited freak provided?
 
lovescream
post Jun 8 2005, 07:51 PM
Post #10


define our lives for us.
********

Group: Staff Alumni
Posts: 11,656
Joined: Aug 2004
Member No: 43,293



Make it like 260 because if you make it 270, the horizontal scrollbar will still be there. 4 pixels doesn't make lots of difference.
 
lpdrummer
post Jun 8 2005, 07:56 PM
Post #11


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(Spiritedfreak @ Jun 8 2005, 8:51 PM)
Make it like 260 because if you make it 270, the horizontal scrollbar will still be there. 4 pixels doesn't make lots of difference.
*


OK did that, now should I add this?

 
lovescream
post Jun 8 2005, 07:57 PM
Post #12


define our lives for us.
********

Group: Staff Alumni
Posts: 11,656
Joined: Aug 2004
Member No: 43,293



If you still have that space.. yes.
 
lpdrummer
post Jun 8 2005, 07:58 PM
Post #13


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(Spiritedfreak @ Jun 8 2005, 8:57 PM)
If you still have that space.. yes.
*



OK so just put that anywhere?

EDIT: nvm, got it


Ugh...now I just need to get my text to fit in.....if you have any ideas let me know...
 
talcumpowder
post Jun 8 2005, 08:48 PM
Post #14


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



I just noticed that your HR is huge~! It normally should just fill the space of the layer... Huh. (That's the line at the bottom.)
CODE
<style type='text/css'>hr{width: 150;}</style>
Also, sometimes you have to resend the latest entry so it reformats... -shrug-
 
lpdrummer
post Jun 8 2005, 09:39 PM
Post #15


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jun 8 2005, 9:48 PM)
I just noticed that your HR is huge~! It normally should just fill the space of the layer... Huh. (That's the line at the bottom.)
CODE
<style type='text/css'>hr{width: 150;}</style>
Also, sometimes you have to resend the latest entry so it reformats... -shrug-

*


Whaty whaty? Where do I put that? What does it do? Where did I go wrong cry.gif
 
talcumpowder
post Jun 8 2005, 09:43 PM
Post #16


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Header. Edits the line at the bottom of your xanga. I don't know. Don't give up~!
I screwed up so horribly on my first skins, now that I think about it. o.O They were horrid, wait... They still are. x.X
 
lpdrummer
post Jun 9 2005, 12:38 PM
Post #17


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



Your skins arent horrible!!!


Anyway, I put that above my blog div code, but what does it do? I didnt notice a difference on anything.

And is there a way to make you blog body so that the text only goes to a certain point then goes to the next line? I think that would be the only way I can fit text in my blog body without it looking horrid...
 
lovescream
post Jun 9 2005, 02:33 PM
Post #18


define our lives for us.
********

Group: Staff Alumni
Posts: 11,656
Joined: Aug 2004
Member No: 43,293



yeah, you can do that.
just edit the blogwidth. e_e


what nyah-nek0 said


you edit that to a smaller width.
or you edit the date, since I think I see it seeing it stretching your blog.
 
talcumpowder
post Jun 9 2005, 05:11 PM
Post #19


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



I don't even see the date.... That might be a problem. o.O
Did you disable it? If so, use none, not hidden. Or just edit the width.
 
lpdrummer
post Jun 9 2005, 05:56 PM
Post #20


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(Spiritedfreak @ Jun 9 2005, 3:33 PM)
yeah, you can do that.
just edit the blogwidth. e_e
what nyah-nek0 said


you edit that to a smaller width.
or you edit the date, since I think I see it seeing it stretching your blog.
*


I edited that, but changing the width dosent seem to do much.....its when I am logged in, that box comes up and stretches the box.

As for the date, see below.

QUOTE(nyah-nek0 @ Jun 9 2005, 6:11 PM)
I don't even see the date.... That might be a problem. o.O
Did you disable it? If so, use none, not hidden. Or just edit the width.

*


I don't think I disabled it..... Heres where I think it might be in my code though
 
talcumpowder
post Jun 9 2005, 06:11 PM
Post #21


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Okay, I just checked again.... And I know why I didn't see it the first time, it's tiny~!
CODE
font-size:5px;
Change that to a higher number, or no one will ever see the date. Also, add the width property.
CODE
width: 240;
To that section of your code. o.O
 
lpdrummer
post Jun 9 2005, 06:29 PM
Post #22


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jun 9 2005, 7:11 PM)
Okay, I just checked again.... And I know why I didn't see it the first time, it's tiny~!
CODE
font-size:5px;
Change that to a higher number, or no one will ever see the date. Also, add the width property.
CODE
width: 240;
To that section of your code. o.O

*


I thought the 5px was my blog body text size! I was trying to make it smaller so it would fix in! whoops!

And did I add the width code in right?



Its right below my font size
 
talcumpowder
post Jun 9 2005, 06:31 PM
Post #23


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Use pt instead of px~!
Points are like normal size fonts, pixels are a totally diffrent matter. Five pixels is horridly small.
And ues, you did. ^_^
 
lpdrummer
post Jun 9 2005, 06:47 PM
Post #24


Senior Member
****

Group: Member
Posts: 137
Joined: Feb 2005
Member No: 103,647



QUOTE(nyah-nek0 @ Jun 9 2005, 7:31 PM)
Use pt instead of px~!
Points are like normal size fonts, pixels are a totally diffrent matter. Five pixels is horridly small.
And ues, you did. ^_^

*


OK so change every "px" in my code to "pt"?
 
hi-C
post Jun 9 2005, 06:50 PM
Post #25


Amberific.
********

Group: Staff Alumni
Posts: 12,913
Joined: Jul 2004
Member No: 29,772



Not every px, just those dealing with font sizes.
 

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