Why are my images positioned further down the page as size increases?

Hello,
I'm experiencing a problem with images that I'm a little baffled about.
My image tag is listed as below and comes below text in other plain paragraph tags.
<p><img id="p_image" height="411 width=312 source={src} styleName="image"/></p>
The image is not appearing.  If I decrease the height to 50 it appears (obviously skewed though) and is positioned below the text.
If I increase the height to 300 it appears but now the top of the image is further below the text.
If I set the height to 411 it doesn't appear I assume because the combination of the image height as well as the increased space between the top of the image and the preceding paragraph puts it off the page.
Why does the space below the paragraph increase as the image height increases?
Images attached.
Any help is appreciated.
Thanks, peter

I think the effect you are seeing is a result of how the lineHeight is set up. By default, the lineHeight will be calculated as 120% of the size of the largest thing on the line -- in your case, this is the inline graphic. This is designed to leave space between the line before and the line with the graphic. So it is taking the height of the graphic, multiplying by 120%, and making this the distance between the previous line and the line with the graphic. So the bigger the graphic, the bigger the space above the graphic. Normally this works well with text, but in this case you may want to get closer to "set solid". You can do this by setting the lineHeight to 100%. Or you may wish to leave a couple of percent for the descenders of the previous line. Or, another alternative that may work well for you if you really know exactly where you want the line set, you could measure the graphic, add on the number of extra pixels to leave for the descenders, and make the lineHeight a constant. So you could do something like this:
<img lineHeight="104%" height="411"/>
or this:
<img lineHeight="423" height="411"/>
Obviously you would still need to specify the source and any other parameters you want on the image.
Note that if you are trying to fit a 200 pixel high graphic into a 200 pixel high container, you will hit the same problem -- in order to fit the graphic, the container will have to be slightly bigger than the graphic in order to fit the descenders on the last line. This is true even if the last line contains only the graphic, and no descenders (or text) at all.
Hope this helps,
- robin

Similar Messages

  • Why are my images scrolling from outside the Page width?

    Why are my images scrolling from outside the Page width? I am positive i has all the settings correct, to have an image parallax scroll from the edge of the page into the page and out again. But the images are flying in from the browser width - not the page width. This is not the effect I am after.
    Any suggestions on how to fix this? Given the key position is only linked to the height, I can't for the life of me work out how to ensure the images start moving from a certain position onthe left and right of the page.
    Thanks

    I think the effect you are seeing is a result of how the lineHeight is set up. By default, the lineHeight will be calculated as 120% of the size of the largest thing on the line -- in your case, this is the inline graphic. This is designed to leave space between the line before and the line with the graphic. So it is taking the height of the graphic, multiplying by 120%, and making this the distance between the previous line and the line with the graphic. So the bigger the graphic, the bigger the space above the graphic. Normally this works well with text, but in this case you may want to get closer to "set solid". You can do this by setting the lineHeight to 100%. Or you may wish to leave a couple of percent for the descenders of the previous line. Or, another alternative that may work well for you if you really know exactly where you want the line set, you could measure the graphic, add on the number of extra pixels to leave for the descenders, and make the lineHeight a constant. So you could do something like this:
    <img lineHeight="104%" height="411"/>
    or this:
    <img lineHeight="423" height="411"/>
    Obviously you would still need to specify the source and any other parameters you want on the image.
    Note that if you are trying to fit a 200 pixel high graphic into a 200 pixel high container, you will hit the same problem -- in order to fit the graphic, the container will have to be slightly bigger than the graphic in order to fit the descenders on the last line. This is true even if the last line contains only the graphic, and no descenders (or text) at all.
    Hope this helps,
    - robin

  • Mobile drop down menu won't disappear once I have clicked one of the links in the drop down to take me to an anchor further down the page. I want the drop down to disappear upon clicking and scroll at the same time.

    Basically I have a drop down menu, which i have tried to create numerous times with different widgets available in muse or as freebies on the net.
    The menu within the drop down is a manual menu and each button links to an anchor on the page, so that when clicked the page scrolls to that anchor.
    My problems is that once I have clicked one of the links to go to the anchor further down the page the drop down remains. For the purpose of User Experience and fluidity across the mobile design i would like the drop down to disappear on click of the anchor link. Is this possible?
    Many thanks,
    Lew.

    Hi Brad,
    At the moment I have used an downloaded widget which utilises the acordian style to create the drop down. Here is a link to the Mobile version of the site - http://www.brainstormdesign.co.uk/phone/index.html
    Many thanks,
    Lew.

  • Getting a bg image to tile down the page

    http://www.asiabackpacker.com/ai-resource/about.html
    I'm trying to get the gradient in the "Other Stuff" sidebar
    to tile down the page, but it is only going to the bottom of the
    container DIV (outlined in red)....(if your window is big enough to
    expand beyond the length of the page, you'll see what I mean)...
    Any ideas how to get this to happen?
    Thanks!

    > I guess there's no way to make a DIV expand
    > to the height of the page?
    Nope, not really.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "asiabackpacker" <[email protected]> wrote
    in message
    news:fg8cqk$8vp$[email protected]..
    > This is how I solved it in the end. I guess there's no
    way to make a DIV
    > expand
    > to the height of the page?
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > If the image is the background of the <body> tag,
    it will do exactly what
    > you describe.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "asiabackpacker" <[email protected]>
    wrote in message
    > news:fg8133$n4s$[email protected]..
    > >
    http://www.asiabackpacker.com/ai-resource/about.html
    > >
    > > I'm trying to get the gradient in the "Other Stuff"
    sidebar to tile down
    > > the
    > > page, but it is only going to the bottom of the
    container DIV (outlined
    > > in
    > > red)....(if your window is big enough to expand
    beyond the length of the
    > > page,
    > > you'll see what I mean)...
    > >
    > > Any ideas how to get this to happen?
    > >
    > > Thanks!
    > >
    >
    >
    >
    >
    >

  • I nee the screen to move further to the right and further down the page

    In this particular website "libertyreserve.com" I am unable to get the full screen on my monitor and when I need to move to the far right or down the page, the screen does not move far enough

    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Why are my images so washed out in pages compared to how they look in Photoshop?

    I am new to Pages. I have some beautiful .jpeg CMYK files I am importing into a Pages template, and they look completely washed out in pages compared to how they look in Photoshop. Is this just a preview mode or will they look this bad if I print the file at a print on demand site like HP Magcloud?
    Thanks!
    O

    Hmmmmm...
    Well, I'm not sure about what my color management is set to in photoshop, but its color LCD for the mac in system preferences. As the printer is a print on demand site its not so easy to run tests. The thing is, they want the images as a PDF, but I am loosing quality pringing it into pages, would it be different if i created the PDF directly from photoshop (is that even possible?)
    paper options are:
    60#, 80# or 100# matte text stock options with Saddle Stitch Binding
    80# premium cover stock, 80# matte text stock with Perfect Binding
    the site says this:
    If you are creating your PDF in a different program like Microsoft Word or Publisher, or Apple Pages, you’ll want to save your images based on whether they were CMYK or RGB to begin with. If they were CMYK to begin with, they should be saved as CMYK. If they were RGB to begin with, saving them with an sRGB colorspace will give you the best output.
    I already changed them in photoshop from RGB to CMYK, is it too late to change back? where is the sRGB option anyway?
    Thanks,
    O

  • 2600n Print Quality - repeating pattern down the page

    Whatever gets printed at the top of the page text or graphic gets repeated every 2 inches further down the page. I've tried self clean and calibration procedures from service menu and this does not fix. IT worked great fro a year or so...Clean rollers or film on rollers? New fuser? Software drivers? or somtehing else?

    I think I found and fixed the problem. I'll know for sure tomorrow morning after the printer has set too cool all night.
    I changed some device settings in the Print Quality of the HP Toolbox. I turned ON the following and the issue went away immediately.
    In the Optimize section of Print Qualtiy - try turning ON
    Extra Cleaning
    Trailing Edge Overdevelopment (Full Speed)
    Trailing Edge Overdevelopment (Half Speed)
    Mottle Prevention
    Less Duplex Current
    This (seemingly) worked for me, let me know if this helps anyone else.

  • What I'm trying to do is when I scroll down the page have the images that are on the page stay the same look as I scroll

    What I'm trying to do is when I scroll down the page have the images that are on the page stay the same look as I scroll

    Use the scroll motion tools and set the settings all to 0

  • Why are my images suddenly darker in camera raw and photoshop C4 than when I open them in bridge?

    Why are my images suddenly darker in camera raw and photoshop C4 than when I open them in bridge?

    "Catalog"?  Are you referencing Ps Elements perhaps?
    Wrong forum.  We do not do Elements here.
    Here's the link to the Elements forum:
    Photoshop Elements

  • Look at your iphoto 'page'. On the left is a margin running vertically down the page and within that margin are shown your files/folders - e.g 'events', I can't get that margin contents back

    Look at your iphoto 'page'.
    On the left is a margin running vertically down the page and within that margin are shown your files/folders - e.g 'events', 'last 12 months', 'anniversary' etc etc.
    Now visualize the 'page' but WITHOUT the margin and the entries in it. It just disappeared while I was editing photos.
    I've tried all the 'File', 'Edit', 'View', 'Share' 'Window' & 'Help' options, but no success.
    There is no apparent way of calling up onto the screen any photos, folders etc. because I can't get the margin and its contents back onto the iphoto page.
    I've tried restoring the page from my backup, where it is all perfect, but that didn't work.
    Help please!

    Move your cursor to the extreme left hand side of the iPhoto Window until it turns into a '+' and then click and drag right.

  • Why are songs/albums deleted off of the iTunes store? How can I get them back on the iTunes store? PLEASE help. Thank you.

    Why are songs/albums deleted off of the iTunes store? How can I get them back on the iTunes store? PLEASE help. Thank you.

    Perhaps the copyright holders chose to remove them. What album were you after?
    tt2

  • Text is broken when scanning UP the page; but good scanning down the page; why?

    Text is broken when scanning UP the page; but okay scanning down the page. The text looks like a shot gun has been fired through it. It used to be good both ways until the last update. This is not a problem in any other program including Internet Explorer. I have an image to show you but there is no link here to attach.
    After clicking Allow I got ..........The add-on could not be downloaded because of a fault at the support site.

    Try to create a new Boolean pref on the about:config page via the right-click context menu with the name layout.paint_rects_separately and set the value to true and leave hardware acceleration enabled.
    See comment 414 in bug 812695:
    *https://bugzilla.mozilla.org/show_bug.cgi?id=812695#c414
    If that didn't help then try to disable hardware acceleration in Firefox (you need to close and restart Firefox).
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Very excited about the new update - Thanks Apple for the keyboard update with new emojis! But why are there no ethnicity options for the families?

    Very excited about the new update - Thanks Apple for the keyboard update with new emojis! But why are there no ethnicity options for the families?

    D.p.middleton the Adobe Application Manager has been available for quite some time.  It not only allows Creative Cloud users to install their applications but also downloads and applies applicable updates.  In addition it is also responsible for the licensing and managing your agreement to the terms and conditions of the EULA.
    2. this could be due to you selecting a trial subscription to the Creative Cloud?  If you go to one of the Adobe Creative products and select Help>Updates it will launch the update portion of the Adobe Application Manager which I believe is the portion you are looking for?
    #3 I believe this was already mostly covered in the answer to #2.
    #4 the Adobe Application Manager also receives periodic updates which affects both perpetual and Creative Cloud subscription users.
    I hope this provides you many of the answers you are looking for?  If not please feel free to respond back with any additional inquiries which you have.  Also if you are experiencing any difficulties with the update process please post this as well.  It may not be necessary to have a full understanding of the inner workings of the Adobe Application Manager to help you resolve your difficulties.

  • Why are sent emails not stored in the Sent Items folder in iOS7

    Why are sent emails not stored in the Sent Items folder?

    Thanks, Matt.
    I'm now starting to notice the emails that don't come in order are all posted from sites that use multiple platforms to send the same message; email, Facebook, Twitter, etc. so maybe that has something to do with it. I'm thinking the hold up is possibly at their end.

  • Why are there no sounds located in the Library/Sounds folder in Home Directory? My Mail alerts, etc

    Why are there no sounds located in the Library/Sounds folder in my Home Directory? Since upgrading to Mountain Lion most of my sounds are not working, in my Mail alerts, etc.

    Did you put any sound files there? Because if you didn't, that will explain why it's empty.
    The ~/Library/Sounds folder is where any sound files that you add go, and they are only available to you as the "logged in" user (if you have other users with their own accounts, they each have their own ~/Library/Sounds folder). Apple doesn't put anything there.
    The sounds that come with Mac OS X will either be in the /Library/Sounds folder (which is the shared location for all users) or the /System/Library/Sounds folder (don't mess around with anything in the /System folder!).
    But I doubt your problem has anything to do with the sound files. Try deleting your sound preferences file, or even just clicking around in the Sound system preferences until they start working again (seriously - I had one Mac that had some audio problems after upgrading, and just turning things off and on a few times eventually worked. It seemed somehow tied to Dictation, so try twiddling those settings too).

Maybe you are looking for