Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: luoshibenPosted on 2008-06-30 at 16:55:36ID: 21903956
Getting your contacts box to "stay" in a certain location on the page is not extremely difficult, but you must use CSS for layout, not tables. While I won't recode your page for you, here are the general steps:
s/position ing/defaul t.asp. Best of luck!
1. Replace the <table> containing your contacts box contents with a <div id="contactbox"> and use CSS to re-create and position the text inside of the new contact box
2. Create a <div id="main"> that encloses your entire website content area (everything including header, navigation, text, footer, etc.); This needs to be set to the width of your content area in order for the content <div id="main"> to be placed correctly in relation to the rest of the content
3. In your HTML code, physically put the new <DIV id="contactbox"> code set inside of your outer div tag -- it doesn't matter where, as long as the <div> isn't nested inside of any other tags
4. use CSS to position the contacts box relative to the page...something like:
div.contactbox {
position:fixed;
top: 150px;
right:0px;
z-index:999;
}
There is definitely more to it than this when you get down to specifics, but short of recoding your entire site to show you how, that is about as much information as can be given. I would suggest learning more about CSS and begin using that for your website layouts as it is much more powerful, flexible, and is the standard. There are many articles that could help to get you started, such as: http://www.brainjar.com/cs