Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
body {margin-bottom: -200px;}
Old 05-13-2008, 07:47 AM body {margin-bottom: -200px;}
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
Greetings,
Does anyone know how could I remove the space on the bottom of my blog? I've tried quite a few things, none of them worked for me...

http://aatiis.blogspot.com
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
 
Register now for full access!
Old 05-13-2008, 01:30 PM Re: body {margin-bottom: -200px;}
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
I am not familiar with blogs but it looks to be something with the nlog set up itself (maybe the default height or something) if you remove the padding -402px in the container div the big gap at the bottom moves from the bottom of the page to the top which has baffled me? is this a google blog thing??

Just a note but the CSS is really messed up, you have div.footer in the CSS, this should be .footer, the container div in the CSS should really be the 1st after the body div for specificity's sake

you have

div {
clear: none !important;
}

If this is supposed to clear floats? if its not then why use clear: none; as the float would cascade anyway, if it is suppsed to clear floats it should look be something like

.clearfloat {
clear:both;
padding: 0;
margin: 0;
}

And loads more, I am not trying to be over critical or anything, if thats how it sounds I appologise - I may be wrong, this could be how blogs are supposed to be as far as I know but I couldn't make head or tail of whats going on here without re-writing the lot or spenging an age correcting what seem to be errors.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by bakerc; 05-13-2008 at 02:02 PM..
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-13-2008, 01:58 PM Re: body {margin-bottom: -200px;}
Plugin-Developer's Avatar
Weightlifting CS Student

Posts: 504
Name: Nick Ohrn
Trades: 0
bakerc - I don't see anything wrong with div.footer. That is just being more specific in case he wanted to apply a footer class to some other element in the page. In addition, I don't think making the assumption that all divs are supposed to claer floats is the right way to go. If that was what he wanted, I'm sure it wouldn't be a clear: none declaration.
__________________

Please login or register to view this content. Registration is FREE
- Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
Plugin-Developer is offline
Reply With Quote
View Public Profile Visit Plugin-Developer's homepage!
 
Old 05-13-2008, 02:04 PM Re: body {margin-bottom: -200px;}
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
div. ...I learnt something new today!...I didn't know that cheers Nick.

clear:none;....
I thought the bloging software would have created a lot of the CSS and thats why the clear: none; would have been put there. I thought the clear was used for floats? - just so I am clear on it, can you think of an instance where you would use clear none? as I have never used it..
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by bakerc; 05-13-2008 at 02:10 PM..
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-13-2008, 08:02 PM Re: body {margin-bottom: -200px;}
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Remove top: -402px from div#container and the space should go away.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-15-2008, 05:16 AM Re: body {margin-bottom: -200px;}
aatiis's Avatar
Skilled Talker

Posts: 53
Name: Attila Oláh
Location: Serbia
Trades: 0
Thank you people for all the help. Just to be clear here, that messy CSS is written by hand, by my. I'm not much on af expert, perhaps that's why it's buggy, and that's why I'm begging for help on wm-talk Anyway, that div {clear: none !important} is left there from some older version of the blog, where the default, Blogger's CSS used divs to clear floats (clear: both) and I wanted to overwrite it, it messed up my style (or I wasn't able to do it better). I've fixed it now. I had this thing to prevent people with screen resolution less than 800x600 seeing my blog's background centered incorrectly. According to Google Analytics, there are no such people (or barely a few). Thank you guys for helping me out with this.
__________________

Please login or register to view this content. Registration is FREE
:: my web design blog
aatiis is offline
Reply With Quote
View Public Profile Visit aatiis's homepage!
 
Reply     « Reply to body {margin-bottom: -200px;}
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25618 seconds with 12 queries