HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
html newbie question Posted by rusty123 on 16 Jan 2009 at 11:21 AM
Hi,
I had my html site designed for me several years ago. Here it is: http://www.davidoffphotography.com/wedding-photography.html It needs a serious overhaul. Can anyone help with some basic questions. 1st, when I click on a photo, a new window appears when I try to close. Any way to disable this function?
2nd question: How do I center the site? It seems to load in my browser on the left.
thanks a lot
Report
Re: html newbie question Posted by CyGuy on 23 Jan 2009 at 11:33 PM
In the wedding-photography.html file line 28 contains the following code:
document.images[i].onmousedown = protect;

comment this line out like so:
//document.images[i].onmousedown = protect;

that will stop the pop-ups

Same file, line 49 reads:
<div align="left">

easy peacy
<div align="center">

better yet
<div style="position:absolute;top:100px;left:100px;">

The last one places the entire page left 100 pixels from where it is and down 100 pixels

You could even use right in place of left to specify the distance from the right edge of the browser screen or even be more creative by replacing the px with %

Good Coding



WHAT you;see_is_what=you.get;
-Russ aka DangeRuss



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.