Misalignment in browser when window size changes

I have two ap elements within content, one aligned to the left side of the content, the other next to it, i.e. aligned to the right side of the content.
Preview in browsers such as IE7 and firefox in full window the content expands beyond the right alignment so there is too much white space. On the left the content moves to the right. In decreased window view content shrinks and leaves right ap element going over into the body.
I want the elements of the site not to move when the window is collapsed and that when moving the lower nav bar the site just shows as in the full window (but partially).
http://www.jindasing.com/index_beta.html

Rule number 1 - don't use Absolutely Positioned divs unless you have a very good and specific reason to! As you're discovering absolutely positioned elements (like AP Divs) don't work the way you might think. They are absolutely positioned relative to their parent container! Often times this is your body tag. And they are a very inflexible tool which is why you shouldn't generally use them for layout.
Okay but to answer your question -
Remove this from your page:
<style type="text/css">
#ap_usp {
     position:absolute;
     width:591px;
     height:121px;
     z-index:1;
     left: 159px;
     top: 161px;
#ap_logo {
     position:absolute;
     width:409px;
     height:120px;
     z-index:2;
     left: 760px;
     top: 164px;
</style>
And in your attached stylesheet () remove the height attribute from the .header class. Like this:
.header {
     background: #516081;
     height: 100px; <- remove this
Now how does it look? Better? Then to center your image, use a CSS class to give it some padding or margins.
Hope this helps!

Similar Messages

  • Adobe Reader, MS Office window size changing when switching displays

    I have a current generation (mid 2012) MBP with Retina Display running ML 10.8.3. I also have a Dell U2413 monitor, confgured for
    1920x1200 resolution, connected via a Thunderbolt to Display Port cable that came with the monitor.
    When I switch displays, Adobe reader, Excel, and Powerpoint all have their window sizes change dramatically. Reader
    shrinks to just the status bar and is tucked in the very bottom left hand corner (it took me quite some time to even see it
    was there at all); Excel windows expand dramatically to be much larger than full screen, and Powerpoint windows shrink
    to about 1.5" square. Other windows (Mail, Chrome, Safari, iTunes) change or move slightly but are more or less OK.
    I know this problem is expected when switching to an external monitor with dramatically lower resolution (e.g. old In Focus
    projectors) but I don't believe it should happen with a hi-res monitor like the one I'm using.
    I have compared this behaviour with other users running same SW versions and external monitors with the same
    resoultion and they don't see this problem so I'm guessing there's some configuration option or low level setting
    that is messed up.
    These window size changes happen going both from internal to external and external to internal. Any ideas?

    I have a current generation (mid 2012) MBP with Retina Display running ML 10.8.3. I also have a Dell U2413 monitor, confgured for
    1920x1200 resolution, connected via a Thunderbolt to Display Port cable that came with the monitor.
    When I switch displays, Adobe reader, Excel, and Powerpoint all have their window sizes change dramatically. Reader
    shrinks to just the status bar and is tucked in the very bottom left hand corner (it took me quite some time to even see it
    was there at all); Excel windows expand dramatically to be much larger than full screen, and Powerpoint windows shrink
    to about 1.5" square. Other windows (Mail, Chrome, Safari, iTunes) change or move slightly but are more or less OK.
    I know this problem is expected when switching to an external monitor with dramatically lower resolution (e.g. old In Focus
    projectors) but I don't believe it should happen with a hi-res monitor like the one I'm using.
    I have compared this behaviour with other users running same SW versions and external monitors with the same
    resoultion and they don't see this problem so I'm guessing there's some configuration option or low level setting
    that is messed up.
    These window size changes happen going both from internal to external and external to internal. Any ideas?

  • Preventing scrollbars appearing when font size changes

    Hi,
    I have a Panel container (relative layout with now height/width specified) containing text which has its font size determined at runtime from an external stylesheet. In my application, the user has the option to change font size (ie. load a separate external stylesheet). The problem is, whenever larger font sizes are chosen, horizontal and vertical scroll bars keep appearing within my panel container. I do not want this at all, I want the panel to resize!
    I've tried almost everything, including:
    Calling "validateNow()" when font size changes
    Launching a resize event when font size changes
    Overriding the updateDisplayList method of Panel and trying to set the height and width to the newly measured height and width.
    None seem to be effective. It is as if the Panel does is not able to calculate the new size when the font size changes.
    Any help would be GREATLY appreciated.
    Thanks.

    Hi,
    With mx panel you can set its verticalScrollPolicy="off" horizontalScrollPolicy=""off",
    David.

  • Window size changed

    While I was out today my husband decided to 'play' with my iMac. I came home and the size of the windows in Safari have changed totally. The windows used to go across most of my 22inch screen, but now it's not even half the size.
    How can I change the window size again?

    In the lower right hand corner of the window you will see 3 diagonal lines. Click on them and resize the window to the size you prefer.
    Message was edited by: rkaufmann87

  • Portlet window size changes in Webcenter

    We have a custom portlet that is deployed in Webcenter in AviTrust using the Application Page Template. As we step through the screens in the portlet, the width of portlet window changes. The portlet content itself is in a div and does not specify a specific pixel width.
    I'm fairly new to this but the way I understand the DIV tag, the width of the DIV tag is determined by the enclosing container. This would imply that the width of the Webcenter containers enclosing the portlet content is not fixed.
    I know one can fix the size fluctuation by setting the size of the portlet after it is added to a page. Is there any other way to stop the size change without actually specifying a fixed width in pixels?
    Much appreciated if anyone could comment on this behaviour in Webcenter so I can be sure of the possible fixes for this issue!
    Thanks heaps.

    Thanks.
    I dont like full screen mode, I prefer to keep the window at a size which is comfortabe for me to work.
    From what you have said, it seems as if I cant prevent the main window from constantly changing size each tyime I select fit to screen.
    I am baffled, because I have been using Phtotoshop CS4 with a window size setting which stays the same regardless of how I zoom the image/canvas. Odd isn't it?
    Regards

  • Trouble: absolute center background image to adjust when window size adjusts

    Hello DW experts!
    I would really appreciate some help in getting my background image to be perfectly centered, and then adjust to always be in the center when the window size is adjusted. Here is an example of what I am looking for:
    [http://www.wpdfd.com/editorial/thebox/deadcentre4.html | http://www.wpdfd.com/editorial/thebox/deadcentre4.html]   I have searched and found a lot of resources online, and I have tried there different options  (i.e. background: cover, absolute, z index etc.).  Here is a link to the homepage, goal is for the words Apex to show up in the center. It does not only if viewed on a large monitor. Goal is if the monitor is smaller or the person adjusts the window for the word Apex to adjust and remain as centered as possible. There will be content covering it on some pages so it does not have to be perfect.
    [http://sellurownhouse.com/ | http://sellurownhouse.com/]    Thanks in advance for any help!
    body {
    background-color: #000;
    margin: auto;
    background-image: url(images/wallpaperx.jpg);

    body {
         width: 980px;  /**adjust as req'd**/
         margin: 0 auto; /** with width, this is centered on screen**/
         background: #000 url(your_background.jpg) no-repeat center center;
    Nancy O.

  • How to stop symbol-content from changing size when symbol size changes?

    When I change the size of a symbol, the content is also resized. I want my symbol to act as a viewport: when I make the symbol half as high, the content shouldn't be transformed, you only should see half of the content instead of transformed content. Make the symbol's boundaries act as a cropper, if you get what I mean. How do I do this?

    Hi Jack,
    I think (not sure though) that the Library Item is causing the problem. I never use the Library Item because server side includes are far more efficient and need less maintenance.
    Have a look here http://foundationphp.com/tutorials/sprymenu/ssi.php
    If you have PHP serverside scripting language, use DW to add serverside includes using PHP.
    Getting back to your original problem, try without the Library Item and see if DW still changes the code.
    I hope this helps.
    Ben

  • Why does firefox keep making it my default browser when I keep changing it to IE it changes back to firefox

    So every time I go to firefox it makes it my default broser but I dont want it to i changed it to IE but it changes back to firefox again. And I dont want firefox as default.
    == This happened ==
    Every time Firefox opened
    == about a week or so ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; MDDC; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)

    Hello Mandy.
    I can't think of a scenario where Firefox would make itself the default browser against the user's consent. Still, go into Tools > Options > Advanced > General > System defaults and untick that small box at the bottom of the window that talks about Firefox asking you each time it starts.
    Hopefully that will fix the issue.

  • Windows size change from pc to pc

    i created this jframe with a jpanel inside and some buttons and textfields on my 17 inch laptop
    when i put on another laptop of 15 inch size some of the butons couldnt be seen because they were out of the screen
    the jframe size is correct ( i used code to get screen dimensions and create jframe accordingly ) but the buttons inside were not skuished to fit properly
    how can i make the inside buttons and textbox work on all pcs
    plz help

    >
    i created this jframe with a jpanel inside and some buttons and textfields on my 17 inch laptop>Do you mean JFrame and JPanel? I am unfamiliar with the other two and unable to help.
    >
    when i put on another laptop of 15 inch size some of the butons couldnt be seen because they were out of the screen
    the jframe size is correct ( i used code to get screen dimensions and create jframe accordingly )...>Full-screen does not necessarily equal correct, when it comes to frame sizes.
    >
    .. but the buttons inside were not skuished to fit properly
    how can i make the inside buttons and textbox work on all pcs >What layouts is the code you did not show us, using? As an aside, not all PCs have Java, so it will never work on 'all PCs'.
    >
    plz help>Please type words fully. This is not SMS.

  • How to get header to stay centered on different browser window sizes

    Hi,
    Is there a way to change the header design so it stays
    centered and moves to accommodate different browser window sizes?
    Right now, it stays where it is, and everything else moves and
    stays centered as window size changes. I'm a new Dreamweaver user.
    the url is
    http://ellifolks.com/
    I tried changing the template I made for the site, and was
    able to delete some things, but it won't let me add things now. I
    can't undo to where it started, either. I tried doing a second
    template. Now I can't save anything -- I get a message saying
    "sharing issues".
    Thank you.

    Combining absolutely positioned elements with centering
    tables (as you have)
    accounts for about 20% of the posts on this forum. It's
    commonly done
    because it seems so easy. This is one of the penalties you
    pay for taking
    that easy road.
    The answer to your question is yes, you can do this.
    1. Make this image the page background -
    http://ellifolks.com/images/ellifolks_web_header_repeat.gif
    - and use CSS to
    give it a style of background-repeat:repeat-x.
    2. Place your assembled header within a STATIC div (i.e., NOT
    a layer) at
    the top of the page by changing this -
    <div id="apDiv1"><img
    src="images/dots_header_left.gif" width="175"
    height="192" alt="dots left" /></div>
    <div id="apDiv2">
    <div align="center"><img
    src="images/header_animals_logo.gif" width="759"
    height="195" alt="ellifolks logo" /></div>
    </div>
    <div id="apDiv3"><img
    src="images/dots_header_right.gif" alt="dots right"
    width="175" height="192" /></div>
    to this -
    <div id="header"><img
    src="images/dots_header_left.gif" width="175"
    height="192" alt="dots left" /><img
    src="images/header_animals_logo.gif"
    width="759" height="195" alt="ellifolks logo" /><img
    src="images/dots_header_right.gif" alt="dots right"
    width="175" height="192"
    /></div>
    3. Add this to your CSS -
    #header { width:1109px; margin:0 auto; }
    That should do the trick.
    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
    ==================
    "zinnia3" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi,
    >
    > Is there a way to change the header design so it stays
    centered and moves
    > to
    > accommodate different browser window sizes? Right now,
    it stays where it
    > is,
    > and everything else moves and stays centered as window
    size changes. I'm
    > a
    > new Dreamweaver user. the url is
    http://ellifolks.com/
    >
    > I tried changing the template I made for the site, and
    was able to delete
    > some
    > things, but it won't let me add things now. I can't undo
    to where it
    > started,
    > either. I tried doing a second template. Now I can't
    save anything -- I
    > get a
    > message saying "sharing issues".
    >
    > Thank you.
    >
    >

  • Property binding for size produces wrong results on size change

    Hi,
    I've a small class extending from BorderPane. This class contains a simple Rectangle whichs size is bound to the size of the BorderPane minus 20:
    package com.example;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    public class InnerBorder extends BorderPane {
        private Rectangle r = null;
        public InnerBorder() {
            this.r = new Rectangle();
            r.widthProperty().bind(this.widthProperty().subtract(20));       
            r.heightProperty().bind(this.heightProperty().subtract(20));
            r.setStrokeWidth(0.5f);
            r.setFill(null);
            r.setStroke(Color.BLACK);
            this.setCenter(r);
    }Used in a small application:
    package com.example;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class Example extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello World!");               
            BorderPane root = new BorderPane();       
            root.setCenter(new InnerBorder());
            primaryStage.setScene(new Scene(root, 300, 250));
            primaryStage.show();
    }When I change the size of the window, the size of the rectangle changes also. But the result looks a little bit strange. When a change the size too fast, the size of the rectangle will not be changed correctly. The rectangle will became larger than the window and is then, of course, not longer visible. Changing then the window a little bit slower will again result in a correct rectangle. Until the next too fast window size changing.
    Is there anything wrong on my code?
    When I use the same implementation (property binding) in a Control with a Skin, the result is even more strange. If the subtract is too small (< ~40), the size grows endless. Of course the window size doesnt grows, but the property value grows on every size change, even if the window will be smaller. This code is a little bit more, so I will post it if no one could show me an error in my sourcecode above.
    Kind regards

    Hi. I did some modifications. Now it looks OK.
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    public class InnerBorder extends BorderPane {
       // private Rectangle r = null;
        public Rectangle r = null;
        public InnerBorder() {
            this.r = new Rectangle();
           // r.widthProperty().bind(this.widthProperty().subtract(20));       
           // r.heightProperty().bind(this.heightProperty().subtract(20));
            r.setStrokeWidth(0.5f);
            r.setFill(null);
            r.setStroke(Color.BLACK);
            this.setCenter(r);
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class Example extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello World!");               
            BorderPane root = new BorderPane(); 
            InnerBorder inb = new InnerBorder();
            inb.r.widthProperty().bind(root.widthProperty().subtract(20)); 
            inb.r.heightProperty().bind(root.heightProperty().subtract(20));
            root.setCenter(inb);
            primaryStage.setScene(new Scene(root, 300, 250));
            primaryStage.show();
    }

  • JTable - fireTableStructureChanged when window resized

    I'm using a JTable to display a row of icons. The icons are a set size, so I can only fit so many on a row without scrolling. The number I can fit on a row depends on the size of the window and is calculated when the window is drawn. Is there any way I could update the table structure when the window is resized to allow the number of icons per row to change as the window size changes?

    It's already in a JScrollPane, but I don't see how that would help. I want to re-lay out the table depending on the size of the parent container (which is stored in the model). Currently, if the window is resized, the columns in the table get bigger. I want to make the table add more columns instead.

  • After copying a file from NTFS to HFS volume, file size changed when viewing in Windows

    Hi guys,
    I have a Mac Air running Mavericks on a HFS partition and Windows 7 on a BOOTCAMP NTFS partition. I have some files that I want to read/write from/to both systems. Since OS X can't write NTFS and Windows can't write HFS either, and I don't want to use any 3rd-party tools/drivers, I have to adopt a "stupid" way: in OS X, I copy those files from NTFS to its HFS partition, make changes, then switch to Windows and sync them back to NTFS.
    The problem is, after I copied a file from NTFS to HFS in OS X, it seemed ok. But when I switched to Windows, the very copied file in HFS partition had its size changed (bigger) although I didn't make any changes to it in OS X yet. This happens to almost every file I copied, text and binary. For those text files, I tried to open it with EditPlus in Windows and EditPlus reports the correct size on the status bar.
    How could this happen?

    I am not sure if this is what your seeing but...
    The same unaltered file on two different volumes might use different amounts of disk space. This is because a 'disk' is divided in to 'blocks' and a block (also historically known as a 'sector') is a certain minimum size. So if disk-1 has a block size of 512 bytes and disk-2 has a block size of 1024 bytes then a file containing just 10 bytes will use up twice as much space on disk-2 as disk-1 even though it is the exact same file.
    Beyond that, Macs can add additional information like Spotlight tags, labels, icons, etc. which make a file bigger. If you are modifying a file then presumably that also implies adding additional content e.g. for a Word document more text and this will make it bigger. Also depending on some programs are configured or designed 'deleting' text may only mark it as deleted and not really delete. This can apply to older versions of Word which has a 'Fast Save' feature, new versions have removed this and do a proper delete.
    You would have to give more details like what you are doing to the document, what kind of document, and what the two sizes are.
    Finally, there is one other potential difference, some systems and manufacturers use 1024 as a unit for measuring file and disk sizes, some use 1000. It will be the same number of bytes in each case but 1000 bytes in one case would exactly equal 1MB, and in the other it would be 0.9765MB.

  • Why does the font size change unexpectedly when I use the touchpad with my new HP laptop with Windows 8?

    Frequently the font size will change when the touchpad is touched. This is annoying! Is there a setting adjustment I can make to keep this from happening?

    This is very experimental, but since no one else has replied...
    I'm not sure which computers are affected, but Firefox has some support for touchpad "gestures" on multi-touch touchpads. Most of the ones that affect the zoom level of the page are the "pinching" gestures, like a smartphone screen. However, it seems that by default a "tap" will reset the zoom level, and that might be the problem here.
    Could you try this?
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''gest''' and pause while the list is filtered
    (3) Double-click '''browser.gesture.tap''' and change it to... I'm not sure whether there is a command for "do nothing" but you could try typing or pasting in '''cmd_selectNone''' which cancels the current text selection in the page (if any).

  • Possible to change the window size of a CHM file, when first opened?

    Hi all,
    Anyone knows if this is doable? I know lots of chm files that
    open in different window sizes, suitable for their content. But
    right now when I compile, it opens quite narrow, that I have to
    resize manually.
    Take care,
    Tim

    Hi Tim,
    This is what I have done. In the Project Manager, expand the
    Windows folder and double click the default window for your chm
    file. This will open the window properties screen. There is a
    checkbox that says something like "Remember Window Size" which you
    can turn on. Regenerate your layout and view the resulting chm
    file. It will be small and narrow still, but after you resize it
    any subsequent builds in this layout will default to the size you
    set.
    Hope this helps and if there is a better way please let me
    know!
    Cheers
    darkagn

Maybe you are looking for

  • Help For Reimbursements requirement - Urgent

    Dear All, Requirement says: - Reimbursements are part of employee CTC - Employee CTC consists of - Basic - 10,000 HRA- 4000 CEA-200 Med- 1250 Petrol Remb- 1250 - yearly - 15000 Proff. Dev Remb-1250 - yearly - 15000 Car Maintce Remb-1250 - yearly - 15

  • OWB: Import Error

    Hi, I'm getting an error when I try to import views or tables. In the last couple of weeks I've imported 2 views and about 30 tables and am using those in mappings, so it's a new error. It says check the error log table but the error log table is emp

  • Edge Animate CC Stops responding. Help!

    Edge Animate stops responding and doesn't let me do anything. Every time I try to do anything I get the OS spinning wheel and the app stops responding, forcing me to "force quit" it. Starting to get pretty annoyed :/ Tried to uninstall and clean inst

  • Consolidation Time in Version 9.3.3

    Has anyone experienced substantially longer consolidation times in version 9.3.3 after moving from 9.3.1? Our daily consolidation has increased from 60min to 105min after putting in the new version. The only thing we changed from the prior month othe

  • Lsince update to lion osx my imac will not mount windows created video dvds my othe imac running snow leopard will

    since update to lion osx my imac will not mount windows created video dvds my other imac running snow leopard will