Results 1 to 2 of 2

Thread: Changing the size of a picture within a frame

  1. #1
    iratus is offline New Member: Posts Will Be Moderated
    Join Date
    Apr 2011
    Posts
    1

    Changing the size of a picture within a frame

    Hello

    I am very new to html scripting !!!

    I have a very basic question.

    I have a link of a photo and I am trying to change its size within a frame (topFrame).

    I am trying with the height and width command but it doesn't seems to work.

    Can anyone tell me why ???

    This is my code.

    index.html
    Code:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=UTF-8" />
    <title>Everest</title>
    <link type="text/css" href="css/style.css" rel="stylesheet"
    media="all" />
    <script type="text/javascript"
    src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="js/map.js"></script>
    </head>
    <body>
    <h1>Everest, The Mountain Of Gods</h1>
    
    
    
    
    
    
    <div id="map"></div>
    </body>

    UntitledFrameset-6.html
    Code:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Everest</title>
    </head>
    
    
    
    <frameset rows="25%,75%" framespacing="10" frameborder="yes" border="10" bordercolor="#000000">
      <frame src="http://www.mountain.ru/photo/01-2005/everest_360_panorama%20.jpg" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" img src="http://www.mountain.ru/photo/01-2005/everest_360_panorama%20.jpg" />
      <frame src="Index.html" name="mainFrame" id="mainFrame" title="mainFrame" />
    <frame src="UntitledFrame-1"></frameset>
    
    <a href="http://www.mountain.ru/photo/01-2005/everest_360_panorama%20.jpg">
    <img src="http://www.mountain.ru/photo/01-2005/everest_360_panorama%20.jpg" height="900" height="50"></a>
    
    
    
    </frameset>
    
    
    <noframes><body>
    </body></noframes>
    </html>
    style.css
    Code:
    Code:
    body {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: small;
    background: #fff;
    }
    #map {
    width: 100%;
    height: 600px;
    border: 1px solid #000;
    }

  2. #2
    Join Date
    Feb 2011
    Posts
    153
    well first problem is your calling for the ID map but i never see that id issued to anything

    id="mainFrame

    is the only ID i see actually being set when you call something out in css it has to relate to a element in the html

    hope that helps i would suggest reading up on a few good tuts online for basic html and css have a good day and keep learning

Similar Threads

  1. Frame size doesn't stick
    By reinierv in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 05 Aug 2009, 05:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •