Is it possible to keep centered an AP div into another div?

I have a division block with sizes set in ems containing some
text at the top and another div at the bottom with a picture in it.
I want the div with the picture to stay at a certain percentage
distance from bottom of the containing div block and be centered
into it when the user increases the text.
I manage to position the image at the bottom by styling its
div as AP and the containing div as relatively positioned but I
can't figure out how to keep the positioning at the center when the
user increases the text.
Is this possible?

Personally, I think the whole approach is big trouble.
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
==================
"TC2112" <[email protected]> wrote in message
news:[email protected]...
> Hello,
>
> How about using the AP div to just control the distance
from the bottom?
> Set the left position to 0 and make the width of the AP
div the same as
> the blocks div.
> Remove the red background color so it is transparent.
>
> Then, in that AP div insert a div with the width of
339px and the same
> height as the AP div, 245px.
> Give this div the red background color and a left and
right margin of
> auto.
> Put the image in this div.
>
> Now this div will center in the AP div, so it's centered
in the blocks
> div, and the AP div will keep it 5% from the bottom.
>
> Murray may offer a better solution, but it was fun to
think about this
> one.
>
> Here's the code:
>
http://tnsgraphics.com/ctrimg.htm
>
> By the way, if the red background isn't part of your
design and was to
> just help show the issue, then you actually don't even
need the inner div.
> Just give the image a left and right margin of auto:
>
>
http://tnsgraphics.com/ctrimgnoRED.htm
>
> Take care,
> Tim
>
>
>
>
> "emil emil" <[email protected]> wrote
in message
> news:[email protected]...
>> Thank you Murray, the content is fed from an XML
file but I'm not
>> including it
>> since the problem can be seen without it. With the
XML content it just
>> becomes
>> 4 blocks like the one currently in the code.
>>
>> <!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"
>> xmlns:spry="
http://ns.adobe.com/spry">
>> <head>
>> <meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
>> <title>Untitled Document</title>
>> <script src="SpryAssets/xpath.js"
type="text/javascript"></script>
>> <script src="SpryAssets/SpryData.js"
type="text/javascript"></script>
>> <script type="text/javascript">
>> <!--
>> var QqQqQq = new
Spry.Data.XMLDataSet("plants_data.xml", "plants/plant");
>> //-->
>> </script>
>> <style type="text/css">
>> <!--
>> .blocks {
>> float: left;
>> width: 22em;
>> margin-bottom: 2em;
>> background-color: #CCCCCC;
>> padding-left: 0.5em;
>> margin-top: 1em;
>> text-align: left;
>> margin-right: 2em;
>> height: 25em;
>> padding-right: 0.5em;
>> position: relative;
>> }
>> #wrapper .blocks #pictures {
>> text-align: center;
>> bottom: 5%;
>> position: absolute;
>> width: 339px;
>> left: 4%;
>> background-color: #FF0000;
>> height: 245px;
>> }
>> body {
>> margin-top: 0px;
>> }
>> #wrapper {
>> width: 54em;
>> margin-right: auto;
>> margin-left: auto;
>> }
>> -->
>> </style>
>> </head>
>>
>> <body>
>> <div id="wrapper" spry:region="QqQqQq">
>> <div spry:repeat="QqQqQq">
>> <div class="blocks">
>> <div>{name}</div>
>> <div>{description}</div>
>> <div>{size}</div>
>> <div id="pictures"><img
src="images/large/{image}" /></div>
>> </div>
>> </div>
>> </div>
>>
>> </body>
>> </html>
>>
>
>

Similar Messages

  • Centering One DIV in Another DIV

    Hi --
    On this page:
    http://www.mort.thelegatogroup.com/
    the DIV #navigation is
    set to extend left to right across the viewport. Within
    #navigation is
    another DIV -- #navbuttons -- that I want centered on the
    screen.
    While it's centered in IE6 I cannot get it centered in FF.
    Can someone give
    me a hand?
    Thanks,
    John

    Give the inner div a CSS width, and left/right margins of
    "auto".
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Tarvardian" <[email protected]> wrote in
    message
    news:epqoa1$l1h$[email protected]..
    > Hi --
    >
    > On this page:
    http://www.mort.thelegatogroup.com/
    the DIV #navigation is
    > set to extend left to right across the viewport. Within
    #navigation is
    > another DIV -- #navbuttons -- that I want centered on
    the screen.
    >
    > While it's centered in IE6 I cannot get it centered in
    FF. Can someone
    > give me a hand?
    >
    > Thanks,
    > John
    >

  • Is it possible to send a response from BAPI into another BS than Sending BS

    Hi guys,
    I have the following scenario: SOAP->XI->SAP and I'd like to get the BAPI response and send it via XI into the JDBC adapter. So, it should be something like synchronous call. Do you think, this is possible?
    Thanx 4 your answers, Peter

    Thanx guys!
    Shravan, I have a question: I can understand it until the point of sending transformed message to JDBC.. How would you ensure this?
    I would design the BPM process with folloeing steps:
    1, receive SOAP - start process
    2, send transforemd message for bapi call - synchronous
    3, receive response...
    where would you place transformation for JDBC and send step for sending it into JDBC adapter?
    Peter

  • Possible to test one JVM using RMI into another JVM through a single IDE?

    Hi everyone,
    I'm currently trying to do something that I'm not yet sure is possible so I'll try to explain what I want to do as best I can and hopefully someone can give me some insight.
    Basically I'm working with a service that runs on a JVM and I also have separate tool that runs its own main class with a new JVM.
    Currently, in production the only way the tool can interact with the running service is to connect over RMI, which is fine, but now I want to add some new tools doing the same thing but am having a hard time figuring out the best way to test it pre-production.
    So I guess what I'm asking is if it is possible to have my main service running in a test suite, and then also run a completely separate class through its main method and have it connect via RMI to the other one. All using the same instance of some IDE (in this case IntelliJ IDEA)
    I know there are other ways of testing it, but this would be ideal (I think) if I could get it working at all.
    My current test suite creates unix home directories so I could possibly tap into that somehow. I guess my other option would maybe be to run the tools class on its own through a different outside of the IDE enviro.
    Thanks for any possible help

    IJ lets you debug multiple apps concurrently from a single IJ instance. You didn't mention that that's what you're doing, but I'm assuming it is, else why run in IJ, right? If it's not what you mean, I assume that you can also just plain ol' run multiple apps the same way, and if by some weirdness you can't, just debug 'em and don't set any breakpoints.
    EDIT: I guess I don't really know what you're talking about. When I've debugged multiple apps, it was using the "remote" debugging facility. The apps were started on the command line, and then I connected IJ. Note that "remote" just means a separate JVM, not necessarily a remote host, though that's also doable.
    What is it exactly that you need IJ for as part of the runtime here?
    Edited by: jverd on May 20, 2011 2:50 PM

  • I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image,

    I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks

    Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
    Thanks.

  • Is it possible to keep an email account on the iPhone but stop if from checking for new mail?

    I have an email account that has been deleted from the provider (Gmail), but I want to keep the old mails on my phone, while stopping it from checking for new mail.  Is this possible? 
    If I disable the account to stop if from checking for new mail (and producing a bunch of annoying pop-ups every time the mail app is opened), the account becomes invisible and the old mails disappear.  I want to keep them visible to I can read and refer to them, but want to stop the phone from trying to download new ones or check the account.
    Any help appreciated. 

    Thanks for the thought.  In this case, that doesn't really help much, as it requires a bunch of button pushing just to check emails.  Plus, if I'm not mistaken, in addition to switching modes every time I check email, it also prevents the other accounts from downloading the most recent mails as well.  Since it's possible to keep an account on a Mac computer, but take it offline, it's very disappointing if there isn't a way to do the equivalent on an iPhone so that it passively holds the mails but doesn't send constant pop-ups every time the app is accessed.

  • Is it possible to keep the "Email me when someone replies" checkbox AFTER you make a posting?

    I'm not sure if I'm the only who does this, but sometimes I forget to check off this box before submitting a new post (i.e, starting a new message thread). Currently, this feature disappears after you submit a new message thread. It is real useful feature to have, and without it, makes your posting experience a lot less desirable.
    Is it technically possible to keep the check-off box available at all times during a posted thread?

    Hi SteveCT99,
    It is possible to automatically subscribe to topics you participate in:
    At the top of the page, click on the "My Settings" link, located after the "Sign Out" link by your name in the grey box.
    Click on the "Subscriptions and Bookmarks" tab
    Check box after "Notify me for my own posts and replies"
     - and/or - 
    Check box after "Automatically subscribe me to topics I participate in" to add the topics to your subscription list.
    Scroll down and Save changes
    You should now automatically get notices each time a new reply is added to the topic.
    Please let me know if this helps.  
    Thanks,
    SunshineF
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • Is it possible to keep certain emails together in a folder in mac mail

    is it possible to keep certain emails together in a separate folder in mac mail?
    I have a variety of e-mails pertaining to a particular subject that I would like to keep together.
    Thanks in advance

    Yes.  Create a new mailbox folder for On My Mac via the Mailbox ➙ New Mailbox menu option.
    Name it, select the emails you want to group and drag to the mailbox in the left hand pane of Mail.
    In addition you can create a New Smart Mailbox Folder with as many conditions needed to gather the various emails into it.
    You will have to move the emails out of the In box to full time storage mailbox created above.
    OT

  • HT2242 Is it possible to keep the local country but have it display in my language?

    Is it possible to keep the local country but have it display in my language?
    For example I live in Sweden but am English so would like to have the local setting still for Sweden but all text displayed as English.

    Sorry but no, not if you're referring to the iTunes Store. The iTunes Store for Sweden displays only in Swedish; English is not an option.
    Regards.

  • My firefox icon disappears into my applications folder each time I log out. Is it possible to keep the icon on the bottom of my screen? Thank you.

    Hello, My Firefox icon disappears into my applications folder each time I log out. Is it possible to keep it at the bottom of my screen (it used to stay there)?

    Does that mean you have to sign out of creative cloud on one machine and sign back in to creative cloud on the other machine to be able to use it?
    No. You can be signed in to the Cloud (using the same Adobe ID) on two separate computers at the same time.
    If you want to activate the Cloud on a 3rd machine then you need to sign out of one of the other computers.
    Your issue on your home computer is unlikely to be related to signing in.
    Mac or Windows at home? Which operating system?

  • Is it possible to keep the menu bar at the top on for a macbook air?

    I dont like how the menu bar (file, edit, vie, etc) goes away when you make a window bigger. is it possible to keep it there the whole time?

    Not in Full Screen mode. Then you need to shove the cursor to the top of the screen to show the menubar.

  • Is It Possible To Keep Secret Photos On iPhone?

    Is it possible to keep photos on an iphone that can not be accessed by someone just browsing through your iPhone (assuming the security code has already been entered at startup)? In other words, can you set up another level of security for just part of the iPhone? This is obviously an important feature for people that date more than one woman at the same time.

    I think that, right now, the only solution is to keep your photos off the phone, accessible via the web. So for instance, if you're taking photos of extracurricular activities (whethey you're Gov. Spitzer or a reincarnated Bob Marley), use one of the web apps that let you post to a website account protected by a password, then quickly delete the pics from the phone. That way you can always have access to your pics, but they will be password protected and not viewable when you show off your fancy iPhone to the young ladies. Not the optimal solution, but it would probably work.

  • Is it possible to keep the reference of VO Instance in AM session UserData

    Hi,
    I am using JDeveloper 11.1.2.0.0.
    Is it possible to keep the reference of ViewObject Instance in the Application Module Session User Data? Will it have any side effect and is it best practice?
    Instead of find the View Object every time form the Application Module, directly access the instance of viewobject stored in the user data and proceed further for our business logic implementations.
    Thanks in Advance.
    Thanks & Regards,
    Perumal S

    Its not recommended(and it may fail in real life scenario). You may run in to issues when AM is getting passivated. VO has set of supporting components and most of them are not Serialize. Assuming you deal with data from third party data source and your VO is programmatic VO, a possibility could be caching the data used for populating VO through some cluster aware caching mechanisms instead of caching VO instance. Alternatively, if the number of rows are less, use transient VO
    Edited by: Jobinesh on Nov 15, 2011 10:23 AM

  • I am trying to change the Apple ID on my I phone and my Wife's I phone.  Is it possible to keep our contacts, calander, and photos by doing this?  We do not care about our music or apps.  Is this possible?

    I am trying to change the Apple ID on my I phone and my Wife's I phone.  Is it possible to keep our contacts, calander, and photos by doing this?  We do not care about our music or apps.  Is this possible?

    Photos should be copied to the computer and synced back via iTunes.  They are unrelated to the Apple ID unless you are using PhotoStream.
    Depending on how the contacts are synced the the device, chaging the Apple ID may wipe them.
    Why do you want to change the Apple ID?  If it's an email address change, simply change the email associated with the Apple ID.  Do NOT create a new Apple ID.

  • Is it possible to keep iTunes Library on an external disk ?

    Is it possible to keep iTunes Library on an external disk ?

    Moving a library: Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its sub-folders and files) intact to the other drive.  Hold down the option (alt) key (shift on Windows) and open iTunes.  At the prompt to create or choose a library choose the copied iTunes folder.

Maybe you are looking for

  • AMD board choices

    Looking to get my first AMD chip this weekend and can use some help picking a MSI board to run the chip. Anyways i narrowed my choice to the AMD Athlon II X4 620 Propus 2.6GHz processor. I found some micro boards that should work and i want the optio

  • Adding of screen fields

    hi experts, I need to add some custom screen fields in the standard transaction code mm41. I am unable to locate the screen exit for same . Through which i can add fields on the transaction code. could u please give ur suggestions on same.

  • Management Point created using Powershell will error CM Console when viewing properties

    Greetings, We have an established ConfigMgr 2012 R2 CU3 environment with several Primaries and management points already active. These were all installed manually using the CM Console. I am now trying to add additional Management Points using Powersh

  • How to import images into Lightroom

    Good afternoon [Edit] I have all of my photographs backed up on a Westeren Digital hard drive. It is called "My Book K" How can I get that into LR so I can imoport, or export from LR?  Also is it hard on my external hard drive to leave it on all the

  • Problem on oracle 10g developer suite

    y does the oracle ole db provider remove on my system when i fully installed the oracle 10g developer suite