Jump to content

pcadv

Members
  • Posts

    19
  • Joined

  • Last visited

pcadv's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi,I have created a family website, centering the entire document on the web page. It is working fine and depending on the window size, it centers itself. However, while centering itself, it reduces its width and as a result all the alignment inside the document changes.I would like that the document centers itself but does not change its width. I have used HTML and css.In code in css file is:BODY { MARGIN-TOP: 0px; margin-bottom: 0px; border-width: 0px; padding: 0px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #993300; background-repeat: no-repeat;}.cen{ margin-left: 12%; margin-right: 12%; height:100%; padding:0; border:0; }In the HTML file, all the document is placed inside the div class=cen<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="style11.css" type="text/css"></head><body><div class="cen"><H1><li><img src="image007.gif"></li><li><img src="image008.gif"></li></H1></div></body></html>It would be great if anyone canhelp me in this regard.thanks
  2. Hi,When I tried the above, it was accessing the previous folder file but now after loading it on the website, it is somehow not accessing the file photo.htm.I have used the following code:<a href="../photo.htm">Thumbnails</a>It would be great if anyone can help me.thanks
  3. Thanks LittleSam. Your help did solve out the problem and its working nicely.
  4. Hi,I am trying to access a file which is in the previous folder. I mean e.g Folder TRY contains folder HLLY and page photo.html. In the folder HLLY, there is a page target.html.I want to access photo.html in target.html. Can anyone help me the path?thanks,
  5. Hi,I have created a webpage that has an inline frame whose src is an html file containing thumbnail photographs with the option that on selecting the photograph, the large size of the photograph comes in a new page. I want to link the back option of the large size photograph page to the homepage containing the thumbnails.However, the home page is coded such that there are several options and depending on the option selected the html appears on the inline frame. I mean e.g if we select the option PA the PA.html appears in the inline frame. So if I have selected the thumbnail of PA photograph then I want to link back to the homepage with the option selected as PA.The code for the homepage is:<head><script type="text/javascript">function changeSource(imgsrc){document.getElementById("frame1").src=imgsrc}</script><link rel="stylesheet" href="style11.css" type="text/css"></head><body><div class="small"><ul class="none"><li><a href="java script:changeSource('PA/index.html');">PA</a></li><li><a href="java script:changeSource('S/index.html');">S</a></li><li><a href="java script:changeSource('HMB/index.html');">HMB</a></li></ul></div><div class="inlineframe"><iframe id="frame1" width="100%" height="70%"></iframe></div>It would be great if anyone can help me. thanks
  6. Hi,I have created a fuction which accepts a string argument. I want the src to get the argument value in the form of string. I mean, like in the case below; I want "document.getElementById("frame1").src" to get the value of ("frame_a.htm") so that the src opens the page.<html><head><script type="text/javascript">function changeSource(imgsrc){document.getElementById("frame1").src=imgsrc}</script></head><body><div><ul><li><a href="java script:changeSource("frame_a.htm");">PA</a></li><li><a href="java script:changeSource("frame_b.htm");">St</a></li></ul></div><div><iframe id="frame1"></iframe></div></body></html>
  7. Hello pulpfiction,Thanks for your response and help. However, somehow, the iframe src is not working. Am also not sure what excatly to write in the src. Can you explain a little bit further?Thanks
  8. Hi,I want to design a webpage such that if any one option is clicked.. then all remains same except a frame. That is to say.. all things remain same except the picture in the frame keeps changing with change of option selected.the options are in one div and the frame is in other div.In other words, if PA is selected then only iframe src will change. similarly with other li options.<div id="container"><H3 style="left: 20px; text-align: left"> Photographs </H3><div class="small"><ul class="none"><li>PA</li><li>St</li><li>HMB</li><li>SC</li><li>SF</li></ul></div><div class="inlineframe"><iframe src="index.html" width="100%" height="70%"></iframe></div></div>Is it possible that I can have one page coding. If anyone can suggest something, it would be great.thanks,
×
×
  • Create New...