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
Old 04-26-2006, 01:34 PM Making a top AdBar
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
I'm trying to place a small linkbar on the top of all of my free-user sites. Problem is, the difference in design. Some pages have margins, some don't. Is there any way to make the table go all the way across the screen, regardless of the pages margins or padding, without affecting the pages contents?

Like this: http://www.batcave.net/

That's what i'm trying to achieve.

Now, look at these two sites:

With Margins: http://demo.outhost.org/postinfo.html
Without: http://tom.outhost.org/

How can I remove the margins JUST for the table without affecting the pages contents? I'm not going to use the BatCave.net ads , they're just for an example.
__________________

Please login or register to view this content. Registration is FREE
spiralfive is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-29-2006, 03:51 AM Re: Making a top AdBar
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Hi SpiralFive. Batcave is using JavaScript to add this. But the Script they are using is doing nothing more than using document.write statement to write the html code into the page.

I don't see why you can't just write the html code and put it at the top of the page. You could use either a div tag and put it at the top of the page. Or you can put the info in a table. You will have to set the margins to 0 so that it will hug the top of the window and the right and left hand margins.

You should be able to just do it!
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 04-29-2006, 01:53 PM Re: Making a top AdBar
sakr's Avatar
Skilled Talker

Posts: 63
Trades: 0
I'm not sure if I'm understanding your question here, but it seems to me you could just create a absolute positioned div that has a width of 100% and a z index of 999 (though 2 would probably work):

Code:
<div style="position:absolute;top:0px;width:100%;height:auto;z-index:999;">
Code for link bar
</div>
That should do the trick
__________________
Portfolio:
Please login or register to view this content. Registration is FREE
sakr is offline
Reply With Quote
View Public Profile
 
Old 04-29-2006, 11:04 PM Re: Making a top AdBar
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
I was thinking about the absolute div at first sakr. The only problem is if you put this on a page using tables. and the top table goes all the way to the top of the page, This div is going to cover it up!..

it would be better to not use the absolute positioning and just put the div at the top. Then use css to set the margins of body to 0..
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Reply     « Reply to Making a top AdBar
 

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