Layout changed when I added spacing around images.

@charset "utf-8";
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background: #363;
margin: 0;
padding: 0;
color: #000;
/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
padding: 0;
margin: 0;
h1, h2, h3, h4, h5, h6, p {
margin-top: 0;  /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
border: none;
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
color:#414958;
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
a:visited {
color: #F00;
text-decoration: underline;
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
text-decoration: none;
/* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
.container {
width: 80%;
max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
background: #FFF;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
.header {
background: #363;
/* ~~ These are the columns for the layout. ~~
1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.
3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source.
.sidebar1 {
float: left;
width: 20%;
background: #CF0;
padding-bottom: 10px;
.content {
padding: 15px 15px 15px 15px;
width: 80%;
float: left;
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol {
padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
ul.nav {
list-style: none; /* this removes the list marker */
border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
margin-bottom: 15px; /* this creates the space between the navigation on the content below */
ul.nav li {
border-bottom: 1px solid #666; /* this creates the button separation */
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
padding: 5px 5px 5px 15px;
display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
text-decoration: none;
background: #390;
color: #000;
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
background: #6F7D94;
color: #FFF;
/* ~~ The footer ~~ */
.footer {
padding: 10px 0;
background: #CF6;
position: relative;/* this gives IE6 hasLayout to properly clear */
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
/* ~~ miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
<!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" />
<title>Yellowstone Biologist</title>
<link href="NationalParks.css" rel="stylesheet" type="text/css" /><!--[if lte IE 7]>
<style>
.content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
ul.nav a { zoom: 1; }  /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
</style>
<![endif]-->
<script type="text/javascript">
</script>
</head>
<body onload="MM_preloadImages('habitat def.PNG')">
<div class="container">
  <div class="header"><a href= /><img src="animals.gif" width="878" height="193" alt="bison" /></a>
    <!-- end .header --></div>
  <div class="sidebar1">
    <ul class="nav">
      <li><a href="NationalParks.html"><strong>Home</strong></a></li>
      <li><a href="Park Ranger.html"><strong>Park Ranger</strong></a></li>
      <li><a href="Biologist.html"><strong>Biologist</strong></a></li>
      <li><a href="Geologist.html"><strong>Geologist</strong></a></li>
      <li><a href="Historian.html"><strong>Historian</strong></a></li>
      <li><a href="Games.html"><strong>Games</strong></a></li>
    </ul>
    <p><strong>Definitions (italicized words):</strong> </p>
    <p><em>Habitat</em>:   the natural conditions and environment  in which a plant or animal lives</p>
    <p><br />
      <em>Extermination</em>:  completely destroy or kill</p>
    <p><em>USFWS</em>: United States Fish and Wildlife Service</p>
<!-- end .sidebar1 --></div>
  <div class="content">
    <h1>Yellowstone Biologist    </h1>
    <h2>Mammals</h2>
   <p> Yellowstone is home to the largest concentration of mammals in the lower 48 states. Sixty-seven different mammals live here, including grizzly bears, black bears, gray wolves, wolverine, lynx, elk, bison, moose, and numerous small mammals.</p>
    <p>Visitors must view all wildlife safely. You must stay at least 100 yards away from bears and wolves and at least 25 yards  away from all other animals—including bison, elk, bighorn sheep, deer, moose, and coyotes.</p>
    <h4>Bears</h4><img src="grizzly.gif" alt="grizzly bear family" width="150" height="115" hspace="15" vspace="15" align="left" />
    <p>Bears may be seen in Yellowstone March through November of each year. Yellowstone is one of the only areas south of Canada that still has large grizzly bears. Grizzly bears are usually seen in the open areas. </p>
    <p> </p>
    <h4>Wolves</h4><img src="wolves.gif" alt="wolves" width="150" height="115" hspace="15" vspace="15" align="left" />
    <p>
Loss of <em>habitat</em> and <em>extermination</em> programs led to the elimination of wolves throughout most of the United States by early in the 20th century. In 1973, the U.S. Fish and Wildlife Service listed the northern Rocky Mountain wolf  as an endangered species and designated Greater Yellowstone as one of three recovery areas. From 1995 to 1997, 41 wild wolves from Canada and northwest Montana were released in Yellowstone National Park. As expected, wolves from the growing population dispersed to establish territories outside the park. More than 1,600 wolves now reside in Idaho, Montana, and Wyoming. In August 2010, a U.S. district judge ruled against a <em>USFWS</em> 2009 decision to remove the wolf from the endangered species list, so wolves are protected as an endangered species in all three states again.<br />
    </p>
<h4>Bighorn Sheep<img src="BigHornSheep.gif" alt="bighorn sheep" width="150" height="115" hspace="15" vspace="15" align="left" /></h4>
    <p> Bighorn sheep once numbered in the millions in western United States and were an important food source for humans. They are named for the large, curved horns on the males, or rams. Females, or ewes, also have horns, but they are short with only a slight curve. In the winter of 1981-82, an outbreak of pinkeye occurred among bighorns in the Mt. Everts area. Many sheep were blinded and/or killed on the adjacent park road or by falling from cliffs. Some are now found comfortable around summer road traffic.</p>
    <h4>Bison<img src="bison.gif" alt="bison" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
    Bison are the largest mammals in Yellowstone National Park. They are strictly vegetarian, and they graze on grasslands in the meadows, the foothills, and even the high-elevation areas of Yellowstone. Despite their slow walk, bison are surprisingly fast for animals that weigh more than half a ton.</p>
<p>Yellowstone is the only place in the lower 48 states where a population of wild bison has survived since prehistoric times, although fewer than 50 native bison remained here in 1902. Fearing extinction, the park imported 21 bison from two privately-owned herds.</p>
    <h4>Bobcats<img src="yellowstone-bobcat.gif" alt="bobcat" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
    Bobcats  are small wild cats with reddish-brown or yellowish-brown coats, streaked with black or dark brown. They have prominent, pointed ears with a tuft of black hair at the tip. </p>
<p>Unlike lynx, which they resemble, bobcats elsewhere have been highly adaptable to human-caused changes in environmental conditions; some biologists believe that there are more bobcats in the United States today than in colonial times. Yellowstone has many rock outcrops, canyons bordered by rock ledges, conifer forests, and semi-open areas that seem to offer conditions favorable for bobcats--adequate shelter, a variety of rodents, rabbits, hares, birds, and other small animals as well as seasonal carrion, for food.</p>
<p>Bobcats are known to hole-up and wait out severe winter storms elsewhere. These elusive cats are most active at night, so even those who study them seldom have an opportunity to see one.</p>
    <h4>Coyotes</h4>
    <p>
      Yellowstone's coyotes  are among the largest coyotes in the United States. Adults are about 30 pounds, are less than two feet tall and vary in color from gray to tan with sometimes a reddish tint to its coat.</p>
    <p>Small mammals are an important component of coyotes' diets. In Yellowstone, such prey include microtines or voles, mice , pocket gophers, small birds, and in spring and summer, ground squirrels. They also feed on larger mammal's (elk, deer, bison, moose, pronghorn, and bighorn sheep) calves and fawns shortly after birth and young animals.</p>
    <h4>Elk<img src="elk.gif" alt="elk" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
      Elk  are the most abundant large mammal found in Yellowstone and historical evidence confirms their continuous presence for at least 1,000 years. More than 30,000 elk from 7-8 different herds summer in Yellowstone and approximately 15,000 to 22,000 winter in the park. </p>
<p>Bulls grow antlers annually from the time they are nearly one year old. When mature, a bull's &quot;rack&quot; may have 6 to 8 points, or tines, on each side and weigh more than 30 pounds.</p>
    <h4>Lynx</h4>
<p>Adult lynx are about the size of a large domestic cat. Males can weigh up to 30 pounds, while females are smaller. The similarity between lynx and bobcats makes it difficult to determine their status in Yellowstone. A large adult bobcat may be larger than a small adult lynx, so size is not a good characteristic for positive identification.</p>
    <h4>Moose<img src="moose.gif" alt="moose" width="150" height="115" hspace="15" vspace="15" align="left" /></h4><p>
    Moose, the largest member of the deer family, were reportedly very rare in northwest Wyoming when Yellowstone National Park was established in 1872. Moose breed from early September to November and one to three calves are born in May or June. Calves weigh 25 to 35 pounds at birth but grow rapidly; adult females (cows) weigh up to 800 pounds and males (bulls) up to 1300 pounds. </p>
<h4>Mountain Lion</h4><p>
    The mountain lion, also called the cougar, is the largest member of the cat family living in Yellowstone. Mountain lions can weigh up to 200 pounds, although lions in Yellowstone are thought to range between 140 and 160 pounds for males and around 100 pounds for females.</p>
<p>Mountain lions are rather secretive, so most visitors are unaware of their existence in Yellowstone. Lions probably live throughout the park in summer. </p>
    <h4>      Amphibians</h4>
    <p>
    Cool, dry conditions limit Yellowstone's amphibians to four species: boreal toad; chorus frog; spotted frog; and the tiger salamander. Population numbers for these  are not known.</p>
    <!-- end .content --></div>
  <div class="footer">
    <p>Sources: <a href="http://www.nps.gov/yell/naturescience/mammals.htm">http://www.nps.gov/yell/naturescience/m ammals.htm</a></p>
    <p><a href="http://www.nps.gov/yell/naturescience/amphibians.htm">http://www.nps.gov/yell/naturescienc e/amphibians.htm</a></p>
    <!-- end .footer --></div>
  <!-- end .container --></div>
</body>
</html>
This has happened before, where everything in my content area has dropped down below the sidebar.It's happended on several pages. I don't know why or how to fix it. It's for a class, so where I've posted it is private, but here's the page and css code.
HTML

Murray is right. Padding (and margins) is added to the width. However, when using percentages, you should never use figures that add up to exactly 100%.
Browsers need to convert the percentages to pixels. Because pixels must be whole numbers, some percentages are rounded up, which results in the final element dropping down below its neighbours. With percentages, it's much safer to use values that add up to 98% (99% often works, but 98% is safer).

Similar Messages

  • Why does the stage layout change when native menu added

    I have a program that was fine till I added a native menu to it. After adding the menu I have a space on both the left and the right of the stage. If I draw a shape at x=0, y=0 it appears about 40 pixels to the right of the window border. If I remove the menu the space still occurs what is going on?

    Adding the menu shrinks the effective size of the stage. This happens because in the app descriptor, you set the outer size of the window, not the stage size. When you add a menu, the space for the menu is created by removing space from the stage, not by increasing the height of the window.
    You see the bars around the app because you have the stage scalemode set to something other than noScale.(noScale is NOT the default.) The other scale modes attempt to keep most or all of the app in view when the app is not the same size as the stage (which happens when you add a menu to a window). The space around the edge is the result of the runtime scaling your content into the available space When you remove the menu, this space should be returned to the stage -- and does in my tests, so I can't explain why you don't see the scaling go away. Perhaps you are drawing your content based on the reduced stage size so you still have extra space after the menu is removed.
    The stage align property determines how the content is positioned on the stage when it is scaled down. The default is center which distributes space to either side when the stage is scaled horizontally, which is why the origin effectively moves away from the left side of the window. If you used the an AlignMode of top left, the origin would stay in the top left corner.
    In general, I recommend setting the stage scaleMode to noScale in an application, unless you have a specific need for one of the other scale modes. Even then, you can still scale things programmtically using logic appropriate to the situation. The other modes were designed for use in a browser where the SWF author may not have control of the stage and so must choose the least-bad compromise. In an AIR app, you have control and so don't need to make that compromise.

  • Why does the layout change when creating calendars in iPhoto?

    Hi.  How can I stop iPhoto from automatically changing the layout when adding photos to make a calendar?

    Hi.  Latest version of everything.  Picture calendar theme.  Let's say I choose the layout that uses 6 photos.  I begin to drag photos where I want.  Sometimes the layout stays the same, but sometimes the layout of the photos changes positions, even after I have placed a specific photo into a specific place holder.  If I place a photo into a specific place holder, I would like it to stay there and not change positions.  I am not an iPhoto user - I use Aperture, but I cannot create calendars from within Aperture - so it seems to me there ought to be a tick-mark someplace that I need to uncheck so iPhoto stops rearranging photos as I place them into the layout.  I hope this make sense.  Thanks for taking the time with with.  It is appreciated.
    mike

  • Layout Change when program run in background.

    Hi All,
    I have a layout field on the selection screen. When I run the program in foreground, iam able to see the change in the layout in the output. When I select a layout name and run the report in background, Iam sending a file to the application server. Now, when I give the layout and run the report in background, the file iam sending to the app server should have the same layout which i have selected in the selection screen.
    Please help with some example code.
    Thanks,
    Guru Charan.

    Hi Amit,
    Thanks for the reply. The program can be run both the ways. When it is run in the foreground, Iam changing the layout with the help of REUSE_ALV_GRID_DISPLAY. It is working.
    But when iam running in the background, I have to send a file to application server with the same layout.
    thanks,
    Guru Charan.

  • Document layout changes when creating PDF

    We have the problem of the layout/formatting of documents changing whenever we try to print to PDF from, for instance MS-Word.
    We open a large document of lets say 100 pages in total, then when we choose PRINT and now select ADOBE PDF instead of the default Windows printer, then the document layout/formatting changes and now suddenly htere are only 95 pages.
    It is aboviusly some font setting problem, but we have not been able to find a soultion ourselves. This issue also prevents us from using "create from multiple files" as we cannot trust the final layout (page numberring end up wrong in PDF file)
    Any input will be appreaciated.

    Thx for the input. I am aware of the suggested workaround, but I was looking for at more "permanent" solution, as we need to combine 40-50 files for each job (Word, Excel...and more) and therefore we are trying to avoid having to go through all documents each time we need to convert to PDF.
    Currently we are :
    opening each document individually
    then selecting ADOBE PDF printer
    then checking document formatting/layout
    then printing to PDF.
    finally combining the 40-50 PDF's to one PDF
    This we have to do as we cannot trust the formatting/layout.
    It is off course undesirable when we know we can combine Word, Excel files to one PDF in one "go" without having to open the individual docs. at first.
    Surely, it must be some printer driver setup issue (using printer fonts, enabling/disabling bitmap fonts, use truetypes....etc)? we just can't find the recipe for this ourselves.

  • Layout changed when copy and modify standard pz09 service

    Hi,
    We  have copied the standard PZ09 ITS service (HTML Template, TCode, program) to custom program. Done some changes in custom program and published the service to ITS. But when we test the custom service the the layout looks entirely different. how to get the standard PZ09 layout in custom service. we haven't done any change in html template.
    Thanks & Regards,
    Bala

    Hello Bala,
    Does your original PZ09 service have templates?  You will need those templates (and mimes) to have the same look and feel.  Therefore if your custom service is called ZPZ09 then your system should have a zpz09 directory of templates.  If not then that is the problem, you haven't copied (or published) the PZ09 templates.
    Edgar

  • CSS - spacing around images?

    I have some weird space around some of my images and don't
    know how to
    get rid of it.
    The image on the left, right under the top image had some
    weird space ontop?
    http://www.pmuck.de/index2.html
    This is the css I have for that:
    #left {
    float: left;
    #left img{
    padding: 0;
    How can I get rid of that?
    I think I also have the same problem at the bottom between
    the image and
    the browser frame?
    Thank you for any help!
    Brian

    Add this style -
    #header img { display:block; }
    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
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:e3alhd$2hl$[email protected]..
    > Yes - like that. But I guess I'm going to have to look
    at the page now,
    > huh?
    >
    > --
    > 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
    > ==================
    >
    >
    > "Brian" <[email protected]> wrote in
    message
    > news:e3akmi$1ga$[email protected]..
    >> Murray, thank you,
    >>
    >> Like this?
    >> #left {
    >> float: left;
    >> }
    >> #left img{
    >> padding: 0;
    >> display: block;
    >> }
    >>
    >> This did not fix my problem. I also just realized
    that the problem is not
    >> present in IE on a mac, just Safari and Firefox. Not
    sure it that might
    >> give some clues to the issue?
    >>
    >> Thank you for the help!
    >> Brian
    >
    >

  • Why does the color change when I open a warm image in Photoshop CS6?

    Whenever I open a warm color image in Photoshop CS6, the color of the image automatically changes? Please see the attached screenshots below.
    What is the solution to this problem? Please Help.
    I use Windows 7 Ultimate. Photoshop CS6.
    Graphics Card: Intel HD Graphics 2000

    There is no "problem" to "fix". A raw file is just the data captured by the sensor, not yet an image. To produce a useful image it needs to be processed in a raw converter, either automatically in-camera or with a standalone converter (ACR).
    The camera LCD shows you an in-camera processed jpeg, according to the camera manufacturer's idea of how the raw data should be interpreted. There is nothing inherently "correct" about this, and a lot of the original data have been thrown away in the process.
    ACR doesn't make any assumptions about how the final image should look. It shows you a neutral starting point, with default settings to preserve as much of the original data as possible. The rest is up to you. You're not supposed to just accept the defaults. The sliders are there for a reason.
    You can change the ACR defaults at any time if you come up with settings that are more to your taste.

  • Frame layout changes when button is pressed again...

    Okay so basically I have a button on my frame and when it's pressed it opens up another frame. This is fine, but when the button is pressed again it opens up the frame again but the layout is all over the place.
    Here is the code:
    if (ev.getSource() == seating)
    else
                   seatdisplay = new JFrame("Seating Display");
                   seatdisplay.getContentPane().setBackground(Color.orange);
                   seatdisplay.setLayout(new BorderLayout()); //Define border layout
                   seatdisplay.setVisible(true);
                   seatdisplay.setSize(550,500);
                   seatdisplay.add(panelLeft, BorderLayout.WEST); //Position object to the west
                   seatdisplay.add(panelMiddle, BorderLayout.CENTER);
                   seatdisplay.add(panelRight, BorderLayout.EAST);
                   seatdisplay.add(panelTop, BorderLayout.NORTH);
                   seatdisplay.add(panelBottom, BorderLayout.SOUTH);
                   panelLeft.setLayout(new GridLayout(4,2)); //Define new grid layout
                   panelLeft.setBackground(Color.black);
                   panelLeft.add(a1 = new JButton("A1")); //Add buttons
                   panelLeft.add(a2 = new JButton("A2"));
                   panelLeft.add(a3 = new JButton("A3"));
                   panelLeft.add(a4 = new JButton("A4"));
                   panelLeft.add(a5 = new JButton("A5"));
                   panelLeft.add(a6 = new JButton("A6"));
                   panelLeft.add(a7 = new JButton("A7"));
                   panelLeft.add(a8 = new JButton("A8"));
                   panelMiddle.setLayout(new GridLayout(3,6));
                   panelMiddle.setBackground(Color.orange);
                   panelMiddle.add(empty = new JButton("")); empty.setVisible(false);
                   panelMiddle.add(b1 = new JButton("B1"));
                   panelMiddle.add(b2 = new JButton("B2"));
                   panelMiddle.add(b3 = new JButton("B3"));
                   panelMiddle.add(b4 = new JButton("B4"));
                   panelMiddle.add(empty3 = new JButton("")); empty3.setVisible(false);
                   panelMiddle.add(empty1 = new JButton("")); empty1.setVisible(false);
                   panelMiddle.add(b5 = new JButton("B5"));
                   panelMiddle.add(b6 = new JButton("B6"));
                   panelMiddle.add(b7 = new JButton("B7"));
                   panelMiddle.add(b8 = new JButton("B8"));
                   panelMiddle.add(empty4 = new JButton("")); empty4.setVisible(false);
                   panelMiddle.add(empty2 = new JButton("")); empty2.setVisible(false);
                   panelMiddle.add(b9 = new JButton("B9"));
                   panelMiddle.add(b10 = new JButton("B10"));
                   panelMiddle.add(b11 = new JButton("B11"));
                   panelMiddle.add(b12 = new JButton("B12"));
                   panelRight.setLayout(new GridLayout(4,2));
                   panelRight.setBackground(Color.black);
                   panelRight.add(c1 = new JButton("C1"));
                   panelRight.add(c2 = new JButton("C2"));
                   panelRight.add(c3 = new JButton("C3"));
                   panelRight.add(c4 = new JButton("C4"));
                   panelRight.add(c5 = new JButton("C5"));
                   panelRight.add(c6 = new JButton("C6"));
                   panelRight.add(c7 = new JButton("C7"));
                   panelRight.add(c8 = new JButton("C8"));
    }The seat button is pressed and seatdisplay frame is opened, however, if I press the seat button twice another seatdisplay frame is opened and the layout is all over the place. Do I need to do some sort of refresh?

    Swing related questions should be posted in the Swing forum.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html
    Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Layout changes when see preview in SP01 through Call transaction

    Hi Gurus,
    I have to show Spool preview from my program  I am doing this by call transaction SP01 with spool no.  and mode E.
    But the preview which comes is very simple, It does not have graphics and other formatting.
    If i check the spool directly from SP01 , its coming fine.
    Please help me on this Issue.
    Regrads,
    Sowmen Das

    I guess you mean CALL TRANSACTION 'SP01' USING lt_bdcdata MODE 'E' (so that to remain on the last screen of the BDC data).
    Probably SP01 identifies that it is called using CALL TRANSACTION and reacts differently. One possibility is that it tests SY-BINPT which is 'X' when CALL TRANSACTION is used (opposed to space when SP01 is called directly). You may use CALL TRANSACTION ... OPTIONS FROM xx, where xx-nobinpt should be initialized to 'X' (don't forget to set xx-dismode to 'E' also), so that SY-BINPT won't change.
    Note: why don't you use the print preview as we do usually? (TDPREVIEW output option)

  • Why do file sizes change when I use "Process Multiple Images" to add watermarks?

    Hi,
    I'm using Elements 11. In order to add watermarks to many JPG pics at once, I use the function "Process Multiple Files".
    I select a source folder and a destination folder, and adds a three digit serial number to each file. I do NOT tick the checkbox marked "Change picture size". After that I define the watermark I want printed on my pics and hits OK. All the files in the source folder are processed and saved, with a new name in the destination folder. Fair and square.
    But. The file size of the new file is heavily reduced, compared to the original. It goes from 10 MB down to 500 KB (in general). Why is that? Is there any way I can prevent it?
    Regards,
    /Mikael Lindgren

    Or you can uncheck the convert files box to save them in their original format, or select one of the lossless formats PSD, BMP, TIF. What is most appropriate depends on what you intend to do with the watermarked versions.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • PHP page layout changes when 'zooming in' ? ...

    Have a particular web page which s PHP coded and it has nested tables.
    When opened in FF the page looks as it was intended to do ... but if you then 'zoom in' the outer table does not expand at the same rate as the inner tables.
    I've tried both setting the table dimensions as fixed pixel sizes and also as percentages (%) ... but neither seems to make any difference ... when you zoom in, the inner tables expand at a greater rate than the outer table.
    I've trawled the PHP help sites but everyone just refers me to the Mozilla site.
    Can anyone throw any light on this behaviour and how to solve the issue ??
    Many thanks

    Can you post a link to a public page that doesn't require authentication (log in) to access it?
    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Ipad orientation does not change when i turn it around

    Ipad stuck in one orientation, can that be fixed?

    Is there a lock symbol at the top of the screen next to the battery indicator ? If there is, then depending on what you've got Settings > General > Use Side Switch To set to (rotation lock or mute notifications), then you can lock/unlock the rotation by the switch on the right hand side of the iPad above the volume switch, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If there isn't a lock symbol then try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • What happens to iweb-built site when I upgrade from Leopard (10.5.8) to Snow Leopard (10.6.3), and subsequently upgrade to 10.6.8 or even 10.7? Will fonts stay the same? Will layout change? Or anything else change? Thanks

    What happens to iweb-build site when I upgrade from Leopard (10.5.8) to Snow Leopard (10.6.3) and subsequently update that to 10.6.8 or even to 10.7? Evidently iweb has been discontinued. I have version 3.0.3 of iweb now but understand that there's been an update for OS 10.6 so same question goes for this update.
    Will fonts change? Will layout change? Will widgets still work? Links? Will Google Analytics PlugIn still work?
    (Since MobileMe is disappearing, I now save iweb site to local folder on my computer, then upload it to GoDaddy using Cyberduck. I run Google Analytics plug in on folder before its uploaded.)
    My computer, MacBook Pro came with iweb, which has been updated to 3.0.3. Since iweb is discontinued, will upgrade of operating system just ignore iweb so that iweb will run the same as before? Or will it wipe it out? Or change how it currently works (questions above).
    Thanks

    As you now know iWeb and iDVD have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    Currently if the site is published directly from iWeb to the 3rd party server the RSS feed and slideshow subscription features will work. However, if the site is first published to a folder on the hard drive and then uploaded to the sever with a 3rd party FTP client those two features will be broken.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: iW14 - Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    NOTE: the iLife 11 boxed version Is no longer available at the online Apple Store.  To get a copy you'll have to try Amazon.com or eBay.com.
    This may be of interest to you: Life After MobileMe.
    OT

  • Level change when adding audio keyframes

    Hi all,
    I've been in Avid Land for the last few months and just came back and noticed something that was getting on my nerves when I left (I don't recall seeing this before FCP 6). When I add keyframes to my audio levels with the pen tool, I get a keyframe, but at the same time, it lowers my level as if I had added a keyframe and then dragged it down. As far as I can tell it does this every time.
    Does anyone know what this is about?
    Thanks,
    Matt

    I was having this problem, so just before I composed this reply I did some tests. It could well be 'sloppy mouse work' but I don't think so. This time the audio level went up by 1 db but before it was dropping by 1 db when adding a keyframe. During the test, no matter how accurate I was the audio level changed when adding a keyframe. The track I was working on was enlarge somewhat and the problem didn't happen on standard sized tracks. I feel that this has to be some sort of bug.
    I have always found FCP a little bit on the 'accurate' side. You have to be very precise when clicking on items otherwise you will miss. Some buttons are way too small and I think Apple could improve the FCP workflow by enlarging some buttons and allowing more space around clickable items.
    A good example of this is the 3 way colour corrector. The left and right buttons for blacks/mids/whites are very hard to hit and I quite often hit the maximum by mistake.
    I have worked on many non-linear systems and FCP is the only one where mouse accuracy is so important.
    I am, to some extent used to this now and I suppose it is a minor inconvenience in comparison to the benefits of using FCP but, in the interests of improvement and ease of use it would be good if Apple could take this onboard.
    Weenie.

Maybe you are looking for