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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Trouble positioning a div with style
Old 04-15-2010, 10:03 PM Trouble positioning a div with style
Junior Talker

Posts: 1
Trades: 0
I am trying to position the lawnmower ad in the upper RHS of the header of this site (it is the Exmark ad):

http://www.michigan-sportsman.com/exmark_index.html

I have the div for this .gif overlay image in the correct table and am trying to use relative positioning with this style:
HTML Code:
#apDiv1 {
height:100px;
left:700px;
position:relative;
top:120px;
width:300px;
z-index:1;
}
The problem is that this adds extra white space at the top of the page before the header that I can't seem to get rid of or figure out why it is happening.

Last edited by chrishirst; 04-18-2010 at 07:23 PM..
wacnstac is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-18-2010, 05:46 PM Re: Trouble positioning a div with style
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
First, get rid of the tables for layout, they are not necessary and they're just bad practice.

Along the way, get rid of the deprecated <center> tags and learn to use CSS to center your site - look in our stickies for help with that.

It likely isn't necessary to use positioning for the ad in the first place is you get your layout out of tables.
__________________
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
 
Reply     « Reply to Trouble positioning a div with style
 

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.74668 seconds with 12 queries