Center Text in blog body, How do you do it? |
![]() ![]() |
Center Text in blog body, How do you do it? |
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? |
|
|
|
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 |
|
|
|
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? |
|
|
|
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 --> |
|
|
|
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;">
|
|
|
|
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 -_- ) |
|
|
|
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.
|
|
|
|
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
|
|
|
|
Jun 8 2005, 07:50 PM
Post
#9
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
|
|
|
|
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.
|
|
|
|
Jun 8 2005, 07:56 PM
Post
#11
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
|
|
|
|
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.
|
|
|
|
Jun 8 2005, 07:58 PM
Post
#13
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
|
|
|
|
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-
|
|
|
|
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 |
|
|
|
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 |
|
|
|
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... |
|
|
|
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. |
|
|
|
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. |
|
|
|
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 |
|
|
|
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
|
|
|
|
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.OI 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 |
|
|
|
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. ^_^ |
|
|
|
Jun 9 2005, 06:47 PM
Post
#24
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
|
|
|
|
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.
|
|
|
|
Jun 9 2005, 06:51 PM
Post
#26
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
|
|
|
|
Jun 9 2005, 09:28 PM
Post
#27
|
|
![]() Amberific. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 12,913 Joined: Jul 2004 Member No: 29,772 |
Hey, take out this:
QUOTE .#rblEprops{display:none;} and replace it with this: #pnlEnabled table, #htmleditor, #lblTimeZone, /* width of the comment page */ {width:245px;} .leftmoduletitlebar, .leftmoduleborder, .leftmoduleinterior, table.left, table.left TH, table.left TD, table.navigation, table.footer {display: none;} QUOTE .mainleft{display:none;}
|
|
|
|
Jun 10 2005, 02:36 PM
Post
#28
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
|
|
|
|
Jun 10 2005, 05:43 PM
Post
#29
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
that's your table.blogbody inside your code. You'd have to change the width to a smaller width.
|
|
|
|
Jun 10 2005, 09:30 PM
Post
#30
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 137 Joined: Feb 2005 Member No: 103,647 |
QUOTE(Spiritedfreak @ Jun 10 2005, 6:43 PM) OK I have changed it from really small to really big and it dosent seem to do much... I think the problem is that my latest entry is wide, so it stretches the blog body, cause every past post seems to fit fine. However, I still have a lot of things to fill in on my code, but I have the skin the way I want it now. Are any of the fields I left blank necessary? I dont know what the ones I left blank do, so I dont want to mess anything up. Also the footer links are back, along with the text/links on the top of my blog P.S. another problem- I change my main text size, but it never works... |
|
|
|
![]() ![]() |