Mellony
February 27, 2012, 8:37pm
1
Hi!
I’d like to decrease the space above my header and top of the page.I know that is possible with CSS .I am using blogger template.Probably I have to go to template designer - advanced - and then- add CSS . I guess I have to put something like that:
outer - wrapper
padding top -…px.
But what value?! And the exact code?
pulls out a crystal ball… Why do you need us? You already solved your own problem. Now you just need to put it into practice. Unless you absolutely need your hand held though out the entire process…Cannot help you with that. Maybe some more willing to hold your hand will come by.
Trial and Error . Making mistakes is the besy way to learn.
ralphm
February 27, 2012, 9:28pm
3
Hi Mellony. Welcome to SitePoint!
Yes, this should be easy with CSS, as long as you can access the style sheet (I’m not familiar with Blogger). To know exactly what CSS you need to use, we’d need to see the site in question, though. Feel free to post a link, and we can confirm what code you need to use.
Mellony
February 27, 2012, 9:45pm
4
Sorry, but I’m not familiar with CSS and still don’t know how to wrap the whole code…
Here it is the site .
ralphm
February 27, 2012, 9:54pm
5
OK, if you can access your CSS page (style sheet), an easy way to remove some space at the top would be to get rid of the line in red below:
body .navbar {
[COLOR="#FF0000"]height: 30px;[/COLOR]
margin: 0;
padding: 0;
}
Mellony
February 27, 2012, 10:15pm
6
I removed it but still plenty of space.
OK, if you can access your CSS page (style sheet), an easy way to remove some space at the top would be to get rid of the line in red below:
body .navbar {
[COLOR="#FF0000"]height: 30px;[/COLOR]
margin: 0;
padding: 0;
}
ralphm
February 27, 2012, 10:21pm
7
Hm, that line is still there. Anyhow, another thing you could do is change the line in red:
.content-outer {
background: url("http://www.blogblog.com/1kt/transparent/white80.png") repeat scroll left top transparent;
border-radius: 15px 15px 15px 15px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
[COLOR="#FF0000"]margin: 30px auto;[/COLOR]
}
to this
margin: 0 auto 30px;
Mellony
February 28, 2012, 4:51pm
8
Hm, that line is still there. Anyhow, another thing you could do is change the line in red:
.content-outer {
background: url("http://www.blogblog.com/1kt/transparent/white80.png") repeat scroll left top transparent;
border-radius: 15px 15px 15px 15px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
[COLOR="#FF0000"]margin: 30px auto;[/COLOR]
}
to this
margin: 0 auto 30px;
Thanks a lot it works! The space is smaller now.
Last question: still a little space, may I remove it?
ralphm
February 28, 2012, 11:01pm
9
Yes, that first line I suggested you remove is still there, but removing it would close the gap completely:
body .navbar {
[COLOR="#FF0000"]height: 30px;[/COLOR]
}
That line still exists at line 1 of one of your style sheets (I think widget_css_2_bundle.css). Perhaps it was in there twice.
Mellony
February 29, 2012, 3:34pm
10
Yes, that first line I suggested you remove is still there, but removing it would close the gap completely:
body .navbar {
[COLOR="#FF0000"]height: 30px;[/COLOR]
}
That line still exists at line 1 of one of your style sheets (I think widget_css_2_bundle.css). Perhaps it was in there twice.
I’ve checked the template very carefully, no such a line (height: 30px).
Mellony
February 29, 2012, 7:02pm
12
Yes, 30 px height is there , but when I click on the link you gave me , I can’t delete it…how exactly to proceed to?
ralphm
February 29, 2012, 9:44pm
13
Mellony:
Yes, 30 px height is there , but when I click on the link you gave me , I can’t delete it…how exactly to proceed to?
Pretty much the same way you edited the other CSS. In your admin area (if that’s how you access your CSS) find that style sheet and edit it.
Sorry, but didn’t find it.
I expand widget template but no such a value.
Are you sure you are opening up the correct file?
Make a change, or addition to that stylesheet and see upon save if it does anything (if the style is there).
ralphm
March 1, 2012, 9:00pm
16
An alternative is to put a more specific rule anywhere else in your style sheets. I wa going to suggest something, but now the site is completely different! What’s happened?
It’s a blogger template and I’m trying to edit its HTML section.
ralphm
March 1, 2012, 11:01pm
18
Weird, the site is back now, but when I clicked your link before I got a completely different site, all black and so on.
Anyhow, here are two ways you could remove the top space:
Either enter this anywhere in your style sheets:
body .navbar {
height: 0 !important;
}
or this
body #navbar {
height: 0;
}
Weird, the site is back now, but when I clicked your link before I got a completely different site, all black and so on.
Anyhow, here are two ways you could remove the top space:
Either enter this anywhere in your style sheets:
body .navbar {
height: 0 !important;
}
or this
body #navbar {
height: 0;
}
The best forum ever! Thanks to all of you!
I’ve put this code in CSS part and it works like a charm:
body .navbar {
height: 0 !important;
}
I’d like to say thank you to all of you, fellows!
ralphm
March 2, 2012, 10:46pm
20
You’re welcome. See you later!