Advice for HTML and CSS code to enlarge an image when clicked ?

Hi,
When clicking on a thumb image I would like users to able to view an enlarged version in the same webpage and then click on close to go back to the thumb image.
This is not in a gallery it is a for sale page which contains 3 images.
I am new to this - learning all the time any help greatly appreciated !!
Kind regards, Matt,
ps code used so far;
<img src="images/gallery_images/thumbs/120px-Glass_1.jpg" alt="Glass image 1" width="150"/>

hello
not trying to hijack the thread but needed some clarification
your very short tutorial
http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.h tml
was really informative. Just have a couple quick questions:
you state:
"the core code library which you ref in your <head> tags,"
the below code just has to be declared ONCE at the beging in your head section, correct?
<!-- jQuery latest core library from CDN-->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js">
</script>
then any number of jquery plugin scripts can be placed in ANY order in your head section following the above code, correct?
"the function code inside <script> tags to invoke the plug-in."
so then in the body, does the functions code have to come RIGHT AFTER the place it is being used?
example
<body>
<div class="slideshow1"
</div>
<!--Plug-In Function Code1-->   
<script type="text/javascript">
</script>
<div class="slideshow2"
</div>
<!--Plug-In Function Code2-->   
<script type="text/javascript">
</script>
</body>
or can you take all the function codes and paste them in the end outside of the respective divs that are using the code?
ie does the position of the code matter?\
thanks guys
Nancy O. wrote:
Try jQuery Fancybox
http://fancybox.net/
If you're new to using jQuery plugins, see this primer:
http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.h tml
Nancy O.

Similar Messages

  • Support for HTML and CSS properties

    My biggest frustration with Acrobat Pro 9 is that it dropped support for certain HTML and/or CSS properties that were available in Acrobat Pro 8. In particular, the page-break-before attribute no longer works, nor does colspan. When I convert an HTML table with some colspans into a PDF, the table looks okay to the naked eye, but the structure behind the table (PDF tags) is incorrect.
    I can live without the page breaks, but I need colspan. I need to do this for hundreds of tables, so opening the Acrobat Table Editor and fixing the colspan by hand is not an option. A scripting/programming solution is required. Has anyone found a workaround? Does Acrobat X fix this problem?

    hello
    not trying to hijack the thread but needed some clarification
    your very short tutorial
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.h tml
    was really informative. Just have a couple quick questions:
    you state:
    "the core code library which you ref in your <head> tags,"
    the below code just has to be declared ONCE at the beging in your head section, correct?
    <!-- jQuery latest core library from CDN-->
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    then any number of jquery plugin scripts can be placed in ANY order in your head section following the above code, correct?
    "the function code inside <script> tags to invoke the plug-in."
    so then in the body, does the functions code have to come RIGHT AFTER the place it is being used?
    example
    <body>
    <div class="slideshow1"
    </div>
    <!--Plug-In Function Code1-->   
    <script type="text/javascript">
    </script>
    <div class="slideshow2"
    </div>
    <!--Plug-In Function Code2-->   
    <script type="text/javascript">
    </script>
    </body>
    or can you take all the function codes and paste them in the end outside of the respective divs that are using the code?
    ie does the position of the code matter?\
    thanks guys
    Nancy O. wrote:
    Try jQuery Fancybox
    http://fancybox.net/
    If you're new to using jQuery plugins, see this primer:
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.h tml
    Nancy O.

  • What's wrong with this html and css code? ref: Create your first  website tut.

    In reply to David Powers re: design view doesn't translate to browser.  I hope this is the approved way to send copies of code and images.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>cable cars</title>
    <link href="main.css" rel="stylesheet" type="text/css">
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
    <script>var __adobewebfontsappname__="dreamweaver"</script>
    <script src="http://use.edgefonts.net/source-sans-pro:n6:default.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="#wrapper">
      <header id="top">
        <h1>Bayside Beat</h1>
        <nav id="mainnav">
          <ul>
            <li><a href="index.html" class="thispage">Home</a></li>
            <li><a href="sightseeing.html">Sightseeing</a></li>
            <li><a href="eating_out.html">Eating Out</a></li>
            <li><a href="whats_on.html">Whats On</a></li>
            <li><a href="where_to_stay.html">Where to Stay</a></li>
          </ul>
        </nav>
      </header>
      <div id="hero">
        <article>
          <h2>Be  Where It&rsquo;s At</h2>
          <p> </p>
          <p>San Francisco is one of the most exciting and vibrant cities on  the planet. Bayside Beat is here to keep you informed of the best  places to see, where to eat, what to do, and where to lay down your  weary head after an action-packed day—or night—on the town.</p>
        </article>
      <img src="golden_gate.jpg" width="1214" height="547" alt=""/>  </div>
      <article id="main">
        <h2>Riding  the Cable Cars</h2>
        <p> </p>
        <p>No visit to San Francisco is complete without a ride on the iconic  cable cars that climb up the vertiginous hills of the city. Of the  twenty-three lines established between 1873 and 1890, three remain:  two routes from downtown near Union Square to <a href="http://www.fishermanswharf.org/">Fisherman's Wharf</a>, and  a third route along California Street.</p>
        <p> </p>
        <p>The cable cars rely on cables running constantly beneath the  road&rsquo;s surface. The driver—or gripman—uses a lever to grip the  cable to pull the car and its passengers up the hill. The gripman  requires not only great strength, but also great skill. He needs to  know where to release the cable to coast over crossing cables and  points. The conductor works in close cooperation with the gripman,  operating the brake at the rear of the car to prevent it from running  out of control on the downward slopes.</p>
        <img src="cable_car1.jpg" width="400" height="266" alt=""/>
        <figure>
          <p>The cable car terminus near Union Square</p>
    </figure>
        <p> </p>
        <p>Although the cable cars are now mainly a tourist attraction,  they&rsquo;re still used by local commuters to get to and from work. The  California Street line is particularly popular among commuters on  weekdays.</p>
      </article>
      <article id="sidebar">
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <HTML>
        <!--          @page { margin: 2cm }          A:link { so-language: zxx }      -->
        <BODY DIR="LTR">
        <h2>Cable  Car Tips</h2>
        <p> </p>
        <p>A single ride on a cable car costs $6. If you plan to travel  around the city, it&rsquo;s often cheaper to buy a Muni Passport, which  gives you unlimited rides on San Francisco&rsquo;s extensive public  transport system, including the cable cars (but not the <a href="http://www.bart.gov/">BART</a> subway  system). Even a single-day passport ($14) will save you money if you  make a return trip, and stop off to visit Chinatown one way.</p>
        <p> </p>
        <p>There are often long lines at the cable car terminus, particularly  on the Powell-Mason and Powell-Hyde routes. If you don&rsquo;t want to  wait, try walking a few stops along the route. The conductor usually  leaves a small number of places to pick up passengers on the way. The  California Street route is generally less crowded (but not as  spectacular).</p>
      </article>
      <div id="footer">&copy; Copyright Bayside Beat 2013</div>
    </div>
    </body>
    </html>

    Some very strange code that doesn't belong. 
    <article id="sidebar">
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <HTML>
        <!--          @page { margin: 2cm }          A:link { so-language: zxx }      -->
        <BODY DIR="LTR">
    Not sure how that got in there but it is definitely not valid.  Looks like a bad copy & paste from some other document.
    Have you reviewed the fundamentals of HTML5 docs yet?  Knowing the basic structure  will help you more than anything else you can learn at this point. 
    Each page has:
    one DOCTYPE,
    one set of <html> tags,
    one set of <head> tags,
    one set of <body> tags. 
    http://www.w3schools.com/html/html5_intro.asp
      <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Title of the document</title>
    </head>
    <body>
    Content of the document......
    </body>
    </html>   
    Nancy O.

  • Preview in firefox only displaying HTML and CSS code

    For some reason, when I go to preview my page in my browser (latest version of Firefox), I've been trying new things out from what I've been seeing at alt-web.com, and copying a lot of their code to experiment with is the only time I have this issue.
    Here is what is being displayed at the moment, along with the .css:
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="../css/alt-style my footer.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
         <div id="headerWrapper">
              <div id="header_logo_over_links">
              </div>
         </div>
                        <div id="contentWrapper">
                        </div>
                   <div id="footerWrapper">
                   </div>
    </body>
    </html>
    @charset "utf-8";
    /* CSS Document */
    /** zeros out default browser settings for all page elements**/
    *{margin:0;     padding:0;     border:0;     font-size: 100%; line-height:100%;
    /**For non-IE browsers**/
    html,body {font-size:90%; height:102%; margin-bottom:1px;} /**adds scrollbar in Mozilla**/
    /**For IE only, you can move this to a Conditional Comment if you like**/
    *body {font-size:76%; zoom: 100%;}
    body {
         font-family:Verdana, Arial, Helvetica, sans-serif;
         width: 100%;
         min-width:1000px;/**not supported in pre-IE7**/
         text-align: center;
         background-color:#222222;
    /**Liquid Header**/
    #headerWrapper {
         padding:0 10px 0 10px;
         line-height:0;
         color:white;
         font-weight:bold;
         min-height: 85px; /**adjust to height of background image**/
         _height: 85px /**for IE6 only**/;
         background:url(../Images/Defaut%20Images/yellow_white_background__85px.jpg);
         #header_logo_over_links{
         position:absolute;
         margin-left:5px;
         margin-top:0px;
         width: 137px;
         height:77px;
         display:block;
         z-index:2;
         background:url(../Images/Defaut%20Images/resize_logo.gif) no-repeat
    .headRight {text-align:right;}
    #sidebar {
         float:left;
         width: 150px;
         overflow: hidden;
         margin:45px 0 0 0;
         padding:0;
         color: #FFF;
    #contentWrapper {
         width:700px; /**adjust width as needed**/
         background:#E5E5E5; 
         margin:0 auto; /**centers container on screen**/
    .content {padding: 10px; text-align: left
    /**begin Liquid Footer**/
    #footerWrapper {
         width:100%;
         background: #2175BC;
         line-height: 1.5px;
         color: #FFF;
         font-weight: bold;
         padding: 10px;
         text-align: left;

    Remove this line of code.  It denotes a .js page and I don't think that is what you want.
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Enlarge an image when clicked in a report

    Hi i am using Apex 4.2.2
    I have a requirement where I can display images in a report. Images are stored as blob in the database.
    I created an interactive report and I can display the image in the report. But when I need to know when I clicked on the image it should enlarge.
    Can someone help me out with this.
    Thanks,
    Rik

    hello
    not trying to hijack the thread but needed some clarification
    your very short tutorial
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.h tml
    was really informative. Just have a couple quick questions:
    you state:
    "the core code library which you ref in your <head> tags,"
    the below code just has to be declared ONCE at the beging in your head section, correct?
    <!-- jQuery latest core library from CDN-->
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    then any number of jquery plugin scripts can be placed in ANY order in your head section following the above code, correct?
    "the function code inside <script> tags to invoke the plug-in."
    so then in the body, does the functions code have to come RIGHT AFTER the place it is being used?
    example
    <body>
    <div class="slideshow1"
    </div>
    <!--Plug-In Function Code1-->   
    <script type="text/javascript">
    </script>
    <div class="slideshow2"
    </div>
    <!--Plug-In Function Code2-->   
    <script type="text/javascript">
    </script>
    </body>
    or can you take all the function codes and paste them in the end outside of the respective divs that are using the code?
    ie does the position of the code matter?\
    thanks guys
    Nancy O. wrote:
    Try jQuery Fancybox
    http://fancybox.net/
    If you're new to using jQuery plugins, see this primer:
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.h tml
    Nancy O.

  • Hate working with code? Zeldman says authoring good HTML and CSS is an art

    Visual designers often complain about the need to get their hands dirty with HTML and CSS, and long for a program that will do it all for them. According to web standards guru, Jeffrey Zeldman, they'll have a very long wait: http://www.zeldman.com/2010/07/05/an-indesign-for-html-and-css/.
    Well worth reading.

    Thank you David.
    I was reading the article a few minutes before you posted, and I just hope more people would take note of what it says, especially this part -
    Adobe could also stop ignoring Fireworks, as Fireworks is a better
    starting place for web design. They might even interview serious,
    standards-oriented web designers and start from scratch, as a new tool
    will suffer from fewer political constraints and user expectations than a
    beloved existing product with deep features and multiple audiences.
    Paula Z

  • Slices - HTML and CSS??

    Hello,
    I was wondering if someone with extensive experience with HTML and CSS AND PS could help me with my question:
    I have been marking up HTML and CSS for some time now using a basic text editor. As my designs have advanced, so has my ability in Photoshop and Illustrator. I came across a tutorial where someone is using PS to convert slices into HTML and CSS. Now, I have always used a text editor for HTML and CSS so this is all VERY new to me. Why would someone want to do this (wouldn't you have MUCH less control if you let PS write out your HTML and CSS for you)? What are the PROS and CONS to using Photoshop in this way over designing using text editors? Is this method of converting slices for people who don't want to learn HTML and CSS or is this a very valuable tool even for people who know HTML and CSS thoroughly?
    Thank you in advance....

    Frigglesworth wrote:
     Why would someone want to do this (wouldn't you have MUCH less control if you let PS write out your HTML and CSS for you)? What are the PROS and CONS to using Photoshop in this way over designing using text editors? Is this method of converting slices for people who don't want to learn HTML and CSS or is this a very valuable tool even for people who know HTML and CSS thoroughly? 
    Thank you in advance....
    The output is plain HTML/CSS so you have the same control to go back and edit it by hand.
    This all goes back to the concept of prototyping. When you are working up designs for a client you probably don't jump straight to typing HTML/CSS. You either present hand sketches or mocks from Photoshop. The idea is that if you have created a decent mock-up in Photoshop, you can proceed to slice it up to become the actual design.
    For a path to thousands of pages discussing the pros and cons of this concept, go here:
    http://www.google.com/search?q=web+prototyping+photoshop
    Photoshop web prototyping is evolving. ImageReady was dropped and with the acquisition of Fireworks from Macromedia (which does the same thing as Photoshop - - but many web designers claim it does it better), the future is uncertain regarding where Adobe will go. Good luck on finding an ideal workflow. I'm still looking too. 

  • I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. How do I resolve this issue?

    I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?

    Starting with this, you have errors in your CSS code.
    body {
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      color: 151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: EFF5F8;
    body {
      margin:0;
      color: #151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: #EFF5F8;
      font-size: 100%;
    Related links:
    Windows Chrome, why do my fonts look so bad? - Lee Green
    css3 - Bad font rendering Chrome - Stack Overflow
    Nancy O.

  • Java Swing/AWT and FX is so old school! Give me HTML and CSS for GUI!

    Dear Java,
    I am a seasoned programmer and I feel it's time JAVA implements a GUI system where it uses HTML and CSS for the GUI. For the love of god just look at the interfaces you can make using HTML and CSS alone. I am a big fan of Java Swing and the recent GUI designer for FX is quite cool. But they are just not as simple as HTML and CSS. And JavaFX has some interesting requirements for the graphics.
    I know it is possible to use JavaFX and implement the WebView/WebDriver and make it load a HTML page, etc... but why go through all the trouble?
    Just imagine... if you make Java where it has powerful back-end to do what it does best and the HTML/CSS powered GUI on the front-end. It will make the lives of many developers much much easier.
    I am not sure whether a Swing designed GUI will be faster than a HTML designed GUI... but if you look at a traditional browser and how fast it renders HTML/CSS, I am sure if Java had a native Form where it uses HTML and CSS to render the GUI, Java will make the dreams of many programmers a reality.
    Make it happen!!!!

    Check this i solve problem just now using this
    https://wiki.archlinux.org/index.php/Ja … ow_Manager

  • HTML and CSS Best Practices for Eloqua?

    Hello Topliners Community,
    My name is Ben and I am a Web Designer. I am currently looking for any guidance on HTML and CSS best practices when working with Eloqua. I am interested in the best practices for e-mail and landing pages.
    Thank you,
    Ben

    Personally I like to upload my custom created html/css into Eloqua instead of using the WYSIWYG.
    But if you must then right clicking on text boxes and click edit source is the way to go.
    There was a good discussion on editing your forms with CSS:
    Energize Your Eloqua10 Forms with CSS
    created by Ryan Wheler on Nov 2, 2012 8:44 AM, last modified by Greg Stotler on Sep 19, 2013 2:00 PM
    Version 2
    CSS can be used to heavily customize the layout of forms in Eloqua10.  In this article we will provide sample cover some common formatting use cases on Eloqua10 Landing Pages.  Further details about uses of CSS in Eloqua10 form templates can be found here: EE12 - Do It - Eloqua - Energize E10 Forms
    Eloqua10 Forms HTML Structure
    Below is an outline of the structure of the HTML generated by Eloqua when a form is added to a landing page.  By targeting the HTML classes highlighted below, we can control the layout of any form on your landing page.
      For the rest of page: http://topliners.eloqua.com/docs/DOC-3015

  • Tools for validate HTML and CSS Error in DW?

    Hello Guys,
    Want to know any addon or menu tool in Dreamweaver to validate HTML and CSS error.
    Because every time i have to check in w3c validation. If DW having in this options it wouldbe great to develop website with out error.
    Please let me know your suggestion for that.
    Cheers
    Abdul
    www.ilearnsmart.com
    www.whitehouseit.com

    DW does provide tools to help with validation:
    http://articles.sitepoint.com/article/dreamweaver-8-standards/1
    http://www.adobe.com/support/dreamweaver/htmljava/migrating_hs_to_dwmx/migrating_hs_to_dwm x06.html
    I find it a bit more comfortable though to use teh W3 Validator and I always access that with the Firefox Browser and the Web Developer plug-in.  Another good plug in for FF is Firebug.
    Martin

  • How can i get the code html and css of my form please help me

    how can i get the code html and css of my form

    HI,
    If you like to embed the HTML form in your web page then you will need to obtain the form code from the Distribite/Embed tab. Additional information can be found here: http://forums.adobe.com/docs/DOC-1991
    You will not be able to access/modify the css code or the rest of the form html code.  If you like to view the source of of a HTML page, please use your browser 'view source code' functionality.
    I hope this answer your question,
    Thanks,
    Lucia

  • Separate the html code and CSS code

    is there any setting where I can separate html Coden with CSS code?

    okej, so if I want to get them in separate files I need to do it b myself?
    If you want the content separate from the CSS, you would have to create the page's HTML and CSS yourself.  There is no way (other than a tedious manual process) to take an existing page with embedded CSS and then give DW a command to separate the CSS from the content.  Now - the extent of the effort to do this manually would depend on the complexity of the page.  Can you post a link to one of your pages - we can tell you how big a job this would be by examining the code.

  • Html and CSS in JEditorPane

    I have been working with Velocity to produce dynamic HTML and displaying the results with the JEditorPane. I have been searching for an article or tutorial that talks about the JEditorPane (HTML and CSS related), but nothing has come up (I also did a quick search in this forum).
    I would like to know what is JEditorPane capable of doing in terms of displaying HTML with CSS, and how do you set it up.
    If JEditorPane is not the best option with HTML that has positioning in CSS, can somebody suggest something else that has better support for CSS than JEditorPane?
    I would greatly appreciate any response (Any suggestion or links to additional information will be great too!)
    Thanks,
    Victor Gutierrez

    I would like to know what is JEditorPane capable of
    doing in terms of displaying HTML with CSS, and how
    do you set it up. JEditorPane has no support for CSS
    If JEditorPane is not the best option with HTML thatit's not
    has positioning in CSS, can somebody suggest
    something else that has better support for CSS than
    JEditorPane?Search google for 'JDIC' find the WebBrowser component
    I would greatly appreciate any response (Anylet's not get carried away here
    suggestion or links to additional information will be
    great too!)
    Thanks,
    Victor Gutierrez

  • N95 HTML and CSS support

    Hello,
    I work on a Web site optimisation for the Nokia N95 phone terminal. I did not find, in the Nokia Web site, any reference documents on the HTML and CSS supported by the N95 Web browser. Where can I get such technical references ?
    Actually, I try to use the command max-device-width and min-device-width which allows to select a stylesheet according to the device dispay mode (width = 240 or width = 320). I noticed that it is not supported by this browser. Are there any alternative ? I would like also to know if the meta tag name = "viewport" is available on the N95 browser.
    Any answear would be appreciated.
    Best regards,
    Xavier Ottolini

    You will find info about this on nokia's developers forum:
    www.forum.nokia.com

Maybe you are looking for

  • Is there a way to prevent users from sending empty or incomplete PDF forms?

    Hi all, Using Acrobat Professional 8, I made a fillable form to individuals to fill in and submit to me as a pdf attachment to an e-mail or print out it and fill by hand. Question 1. I want to make sure they don't send incomplete or empty forms back

  • RAW Thumbnails don't show in Bridge

    I am very new to using Photoshop and Bridge (complete novice); I just took my first Photoshop class this weekend. Have never used either program before the class. Thumbnails of my .NEF files (Nikon Camera RAW) are not showing up in Bridge. The files

  • Why aren't my changes to a .pdf not saving?

    I am running Acrobat Pro 9 for Mac (9.5.4).  I received an unlocked, not signed .pdf brocure.  I made some edits (rotating pages, inserting arrow and comments, etc), "save[d] As" giving it a new name, and closed the file.  Later, I re-opened it, and

  • Gmail

    Hi, I am in the UK and have just signed up with a new ISP, Sky.com. Sky uses Gmail, for it's email services, the only issue I have is with the receiving of mail from my online account. Does anyone know if it's possible to prevent MAIL automatically r

  • Erasing programs/info/etc

    I'm kind of stuck in a situation here. I'm selling my iMac (purchasing a macbook pro soon) but the problem is, I don't have the original disc to clear my hard drive or reset the system back to default settings. Is there a way to do this without the d