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
get rid of top extra space
Old 12-06-2006, 03:04 AM get rid of top extra space
Experienced Talker

Posts: 31
Trades: 0
I have attached a portion of my site logo here. There is some space on top like 2px OR 0.1em.

How can I get rid of it using css or anything else?

My CSS Code:

Code:
/* CSS Document */
#top {
    padding-top: 0;
    text-align:center;
    position:absolute;
    }
My html code so far

HTML Code:
<body>
<div class="top">
<img src="images/logo.gif" alt="The Old Ads" width="750" height="120" />
</div>
</body>
Attached Images
File Type: gif extra_space.gif (2.3 KB, 4 views)
desiram is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-06-2006, 08:27 AM Re: get rid of top extra space
jason_bristol's Avatar
Ultra Talker

Latest Blog Post:
New site - ConnectFrench.com
Posts: 312
Name: Jason Eyermann
Location: england bristol
Trades: 0
try using -

HTML Code:
body {
     margin=0;
     padding=0;
}
and also add padding=0; to the top div.
__________________

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


Please login or register to view this content. Registration is FREE
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
Old 12-06-2006, 02:46 PM Re: get rid of top extra space
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
And that won't work.. syntax has to be:
body{
margin:0;
padding: 0;
}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-06-2006, 02:48 PM Re: get rid of top extra space
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Take out the absolute positioning too in that instance. It's the first div, so it's not necessary.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 12-06-2006, 05:10 PM Re: get rid of top extra space
Experienced Talker

Posts: 31
Trades: 0
Thanks for your help. Both suggestions worked fine.
desiram is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to get rid of top extra space
 

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.29415 seconds with 13 queries