Layout CSS Width percentage questions

An attempt to design back at least IE6, I encountered a problem using widths for my navigation menu.

See here: http://www.ACCU-sembly.com/test/services.html

It looks fine in IE7 +, Firefox, Chrome and Opera, but in IE6, it seems all the widths of my button to width: auto rather than the percentage that I put to them, which was width:16.6%.

I tried to use fixed pixels before and found IE6 full the last button in the next line (an error in interpretation sizing?) and so I thought that the percentages are was the answer.

I understand that IE6 does not know how to calculate the percentages of the div that contains, and so it uses default style width: auto.  Is - here what I can do to force IE6 to recognize the percentages calculated from its container, or I don't have to just live with the overflow with a layout fixed pixel?

Hello

You can use the applicant for just IE6 using pixel widths, that all the other browsers would still have a presentation of calculated percentages.

CICE - http://www.quirksmode.org/css/condcom.html.

PZ

Tags: Dreamweaver

Similar Questions

  • Image Viewer does not offer native zoom level unless layout.css.devPixelsPerPx is set to 1.0, which makes all the tiny interface.

    Asked me to shake my question in one sentence, so this is.
    Image Viewer does not offer native zoom level unless layout.css.devPixelsPerPx is set to 1.0, which makes all the tiny interface.

    DevPixelsPerPx is - 1.0 by default, which causes Firefox to scale with the parameter of the BONE, which is perfectly fine. The problem is that it causes also open image files and especially the zoom level, nationwide also identical to the user interface. A zoom level is adapted to the screen, the other is native. (One is a magnifying glass with a '+', the other a '-'.) Or rather, the other * should * be native, but in practice, it is not native, is climbed by the setting of the BONE, making it as arbitrary and fuzzy like any other level of zoom, which defeats the whole point and does not allow access to a native scaling in any reasonable way.

    If you want to experiment, here is something you can try, a bookmarklet that inserts a 'Native' button on the page. It takes into account your level of "net" zoom current and reduced the image natural dimensions.

    (1) select and copy the following script:

    javascript:var btn=document.createElement('button'); btn.style.cssFloat='right'; btn.appendChild(document.createTextNode('Native')); document.body.insertBefore(btn, document.body.firstChild); btn.addEventListener('click', function(){var img=document.querySelector('img');img.style.transform='scale('+(1/window.devicePixelRatio)+')';}, false); void 0;

    (2) right-click a task on your bookmarks bar or, if you do not display this bar, click on the bookmarks menu button and right click a place there, and then click new bookmark

    (3) paste the script in the location line

    (4) assign a name like native, and then click Add a bookmark

    While you look at a picture, click the bookmark (let) to inject the button. Then click on the button to resize the image.

    Success?

    If you change the zoom level of the 'page', click on the new button to resize it due to the change.

  • How can I increase the height of the background overlay in my file layout.css?

    I can't find a way to broaden the background of a collection in my file layout.css. Here's what I have in my file layout.css.

    #footer {}
    height: 87px;
    background: URL(images/footer-tail.png) of horizontal upper;
    }

    It gives me the following.

    background.jpg

    The dark background is going across the width of the page, but I would like to extend it down so it will go behind the line of down while leaving a line just below the bottom just regular as now. When I change the height of 87px to 120 px my Web page gets taller (I can scroll down again). Also, I changed the "repeat-x h' to fill, but who filled the box with the bottom and do not leave any space downstairs which didn't fill.

    How can I extend the dark background to 3 lines and have still a space below that dark is just the regular blue background? Thank you!

    Make your image of more great background.

    http://victorylcms.org/NewSite/images/footer-tail.PNG

    Currently, it is wide 33px x 53px h.   Try making 33px x 100px.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Web pages too large for the screen, but layout.css.devPixelsPerPx is missing in config

    I followed all the instructions to adjust the size of the Web pages, but there is no layout.css.devPixelsPerPx to be able to make the adjustment - I don't want to use the zoom for each page that I opened - a counsellor please

    Note that you can also use this extension to set the overall zoom (layout.css.devPixelsPerPx) easily without having to go through the comments: config page.

  • Preference named layout.css.devPixelsPerPx

    I wanted to do the standard zoom in Firefox a little smaller, so I went to the preference called layout.css.devPixelsPerPx about: config and messed up her a bit. I tried to change-1.0 to 1.2, but I accidentally typed 12 or 102 instead of 1.2, and now Firefox screen is so huge, that I can't do anything on this subject, so I can't change the preference to 1.0 or 1.2 or other.

    Is it possible to fix this without having to completely uninstall firefox? I am unwilling to lose my settings and Favorites...

    Hello, Jasper, you can perform the following steps to change the still 'blind ': value

    1. Open firefox, and then press ctrl + L (this will focus in the address bar)
    2. type of topic: config
    3. Press ENTER twice
    4. type devpix
    5. Press the tab key
    6. Press enter
    7. type 1.0
    8. Press ENTER again and I hope you should be normal visibility now
  • Change the image of the bottom header.main layout.css to a model of BC

    I use a standard model of the BC in a free version of British Colombia and I'm trying to change the background image of header.main a new, Custom, the image I downloaded to the file manager, however, when I click on 'Preview' to the layout.css file, the former code of the image shows still after that I saved the layout.css with the new image in the code of header.main.

    Also, when I go to templates of pages in the site manager, the old image (original) always shows. How can I change the background image?  Is there somewhere else that I have to go in addition to the layout.css to change?

    It lacks the ".jpg" at the end of the file name.

  • Elastic layout CSS - why there two main column widths?

    In my first all - CSS site, everything was going well until I added content to the pages.

    The layout is elastic 3-column of Dreamweaver with a header and a footer. I also inserted an extra div for a horizontal Spry menu.

    As soon as the content of the main column is less than that of the sidebar, it extends - the top of page three paragraphs may appear about 5 inches wide and everything else below are 6 inches wide. I don't understand.

    See www.krempelsfoundation.org/test/test.html. Any help appreciated.

    You have enough on your #mainContent division left and right margins.  Try this:

    {.thrColElsHdr #mainContent
    margin: 15em 0 0 15em; / * left & right margins = space down the sides * /.
    padding-top: 3em;

    }

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Video said don't touch layout.css, what will happen?

    I was watching a video on the part of DW of this site and the guy says no matter how tempting DO NOT change the .css file during the creation of the fluid grid (I called mine fluid - grid.css.) Component fluid grid of DW is too unstable, so he made his own .css file that he uses to edit once the base grids are set up, he said.

    Here's my confusion. I have page1.html and fluid - grid.css recorded since the beginning of the start of a new fluid grid. I set up the grid to fluid for each device and entered the base make content. Now, I want to start adding styles and customization of things. Okay, I get it, don't touch not fluid - grid.css in DW or bad things will happen. So what do I do to start to make custom changes?

    I copy and paste into a new .css file each sections that have been automatically created cash - grid.css and paste into a new .css custom.css file? Are the sections I mean (I don't paste everyting right at the start of each section, I refer to):

    / * Mobile layout: 480px and below. */

    {.gridContainer}

    left margin: auto;

    margin-right: auto;

    Width: 97.3913%;

    padding-left: 1.3043%;

    padding-right: 1.3043%;

    }

    #Header {}

    Clear: both;

    float: left;

    left margin: 0;

    Width: 100%;

    display: block;

    }

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) {}

    {.gridContainer}

    Width: 91.4836%;

    padding-left: 0.7581%;

    padding-right: 0.7581%;

    }

    #Header {}

    Clear: both;

    float: left;

    left margin: 0;

    Width: 100%;

    display: block;

    }

    / * Office Layout: 769px to a maximum of 1232px.  Inherits the styles of: Mobile and tablet. */

    @media only screen and (min-width: 769px) {}

    {.gridContainer}

    Width: 89.0217%;

    Max-width: 1232px;

    padding-left: 0.4891%;

    padding-right: 0.4891%;

    margin: auto;

    }

    #Header {}

    Clear: both;

    float: left;

    left margin: 0;

    Width: 100%;

    display: block;

    }

    I take the mobile section and paste it into mobile.css, the section for Tablet and paste it into the tablet.css and Desktop section and paste it into desktop.css or stick all in 1 file called custom.css work too?

    If the answer is Yes, do the files, remove the head of <>< / head > of page1.html the original link fluid - grid.css or did stay anything?

    Finally, I read (and heard videos) to do the editing outside the fluid grid DW function. How to exit the service fluid grid? Always seems to be in there after I load the page1.html in DW.

    Any help much appreciated.

    It's true.  Do NOT MODIFY your code FluidGrid.css or boilerplate.css .

    Below, I have a concrete example of checkerboard to fluid.  View source in the browser to see the code.

    http://ALT-Web.com/FluidGrid/fluid.html

    I have three links to external style sheets:

    boilerplate. CSS"rel ="stylesheet"type ="text/css">" "

    FluidGrid.css"rel ="stylesheet"type ="text/css">" "

    Content.CSS"rel ="stylesheet"type ="text/css">" "

    Content.CSS is for my styles to content.    At the bottom of my Content.css, I added some of my own questions of the media to show/hide the divs.

    Hope this helps,

    Nancy O.

  • Layout CSS based - cannot select text to change

    We recently conducted an upgrade to our site. The complete layout is basic css. The problem we encountered is that Contribute users can select is no longer content with the mouse. In fact, the only way to change the content is to use the arrow keys on the keyboard. Although it is possible to change the content in this way it is very tedious and confusing to most of our users.

    I tired to change pages based on a template, and not based on a template pages and get the same question.
    What can I do to fix this?

    The web address is http://engineering.osu.edu

    Thank you
    Matthew

    I finally understood the question. Thank you Chris5337, you me engaged in the correct path. It turns out that there was a problem with padding. The padded div is 'covered' If you want all the other div which held the text. Once I got rid of the padding I could select any text I wanted.

  • Scrolling effects do not work on a layout fluid width (was: Menu)

    Hello

    Sorry for my English, but I write in Polish.

    I have a problem with the menu when I have fluid width - breakpoints. I can't do this effect - black on white.

    When I have a project with a constant width is no problem.

    Example that illustrates what I mean: http://museaward.com/

    Hey Lukasz Siwi,

    Currently Muse does not have the capacity to apply effects to scroll while using breakpoints (fluid layout), in order to achieve that you need to use the layout fixed Muse site and set up your site phone and tablet like you used to do in the previous version of Muse.

    Kind regards

    Ankush Rao.

  • Image on a full-width layout fluid width

    I try to get a picture of full-width using the new fluid width in Muse CC 2015 page.

    I moved the edges of the image area to the outside edge of the page layout (pint, I can see a red line appears).

    But when I visit the site in Safari, the image remains a fixed width.

    Any idea or alternative work would be much appreciated.

    Try this in addition to the step, you already performed:

    1 look at the icon of scaling in the strip of higher order

    2. your stretching wide browser page by clicking on the double arrow to the left of the breakpoint bar.

  • flow layout css hides my button "Buy now" in google checkout

    Hello

    I wonder what I have to change in the css. The site works fine except that it hides my "Buy now" in google checkout button.

    IMG, object, embed, {video

    Max-width: 100%;

    margin-right: auto;

    left margin: auto;

    }

    When I delete "img", in the light of the foregoing, the google button to the desired location, but the rest of the site out of sorts.

    The google script looks like this...

    < id script = "script googlecart" type = "text/javascript" src = " " https://checkout.Google.com/seller/GSC/v2_2/cart.js?mid=550399523763319 ' = 'jscart-wizard"post-cart integration - the-sandbox = 'false' currency ="USD"productWeightUnits ="LB"> < / script >

    < script type = "text/javascript" >

    Thanks for any help

    Nancy, I just solved the problem with this...

    {.googlecart-widget-footertext

    Width: 50%! important;

    }

    Thanks for the inspiration!

  • CSS Drop Shadow Question?

    I have a navigation bar, result of a ul

    I rounded on her

    I wanted to put a drop shadow with css around it

    My CSS is below. The shadow is there on the left and the right, but it does not appear on the bottom.

    I know its something simple, that I miss

    Thank you

    . Header ul {}

    list-style-type: none;

    margin: 0;

    padding-left: 35px;.

    overflow: hidden;

    padding-top: 125px;

    }

    . Header li {}

    float: left;

    }

    . Header a: link, a: visited {}

    Display: block;

    Width: 100px;

    Police-wegiht:;

    color: #fff;

    text-align: center;

    padding: 4px;

    text-decoration: none;

    text-transform: none;

    do-size: 16px;

    height: 20px;

    background-color: #F00;

    border-radius: 15px;

    right margin: 20px;

    box-shadow: 3px 2px 2px #000;

    -moz-box-shadow: 3px 2px 2px #000;

    -webkit-box-shadow: 3px 2px 2px #000;

    }

    . Header a: hover, a: active {}

    Color: #000;

    do-size: 16px;

    make-weight: bold;

    }

    Hello

    To get the shadow to appear in addition to the default location 1, you use several shadows, so for example-

    your

    box-shadow: 3px 2px 2px #000;

    Will be

    box-shadow: 3px 2px 2px #000, - 2px - 2px 3px #000;

    for 2 shadows.

    To add shadows more, just add more properties to the rule from the shadows, each separated by a comma.

    I did not fall on no limit number of shadows, you can have in a single rule, and each of them can be another color, blur radius, and a combination of positive and negative values. You can also use rgba (or any other css color value) If you want to use a transparency of the color value.

    PZ

  • Remove comments in CSS layouts CSS

    According to Stephanie Rawls article on what's new in Dreamweaver CS5 CSS layouts it mentions David Powers free extension: stored query to remove CSS comments.  How can I find and download this extension?

    http://foundationphp.com/tools/css_comments.php

    "I loves me some Google..."

  • Image with width percentage causes the offset Y

    When I put an image spark or mx on a percentage width, or 30%, the image is shifted location Y expected / desired. I have the Image in a HBox and I wait until it is flush with the top, but it seems to keep the same focus as the image full-size adding padding to the top.

    Any suggestions?

    Try to do the following:

    1. PaddingTop set to the myBox 0
    2. PaddingLeft set to the myBox 0

    Image of the spark isn't horizontalAlign and verticalAlign, if the steps above don't work, try with a mx Image and setting the horizontalAlign and verticalAlign on the image for the top and left.  Looking at your picture, it seems that it is the scale of the image horizontally and vertically and the pixels of the image of drawing in the vertical center of the Image.  You must specify the Image in order to align the top and left.

Maybe you are looking for