Question of positioning

I have a simple question of positioning.

I try to get my Web page positioned in the center of the screen. I thought how to do which was to set to "relative" and then on the right and left that both the value 'auto '.

This is how I always got it done, but obviously I did something worng on my current page. Here is my code so far. Any help would be appreciated.

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 "/ >"

index.html < title > < /title >

< style type = "text/css" >

{body

background-image: url(Images/website_background.jpg);

}

. Container {}

margin: 10px;

Width: 900px;

left: auto;

right: auto;

position: relative;

}

. Header {}

margin: 10px;

float: none;

height: 150px;

Width: 872px;

border: medium double #000000;

}

. Sidebar {}

padding: 10px;

float: left;

Width: 150px;

border: medium double #000000;

}

. Happy {}

Width: 872px;

border: medium double #000000;

}

{.navbar}

margin: 10px 10px 10px 10px;

padding: 10px 0px 10px 0px;

height: 30px;

Width: 880px;

}

body, td, th {}

color: #FFFFFF;

}

.footer {}

height: 100px;

Width: 845px;

border: medium double #000000;

padding: 10px;

}

a {}

do-size: 16px;

Color: #00FF00;

}

a: link {}

text-decoration: none;

}

a: visited {}

text-decoration: none;

color: #999999;

}

a: hover {}

text-decoration: underline;

color: #FF3399;

}

a: active {}

text-decoration: none;

}

< / style >

< / head >

< body >

< div class = "container" >

< div class = "header" > contents of class "header" goes here < / div >

< div class = "navbar" >

class "navbar" goes here < /p > < p > content

< div class = "sidebar" >

class 'sidebar' here goes < /p > < p > content

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< / div >

< div class = "content" >

Class 'content' here goes < /p > < p > content

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< p > < / p >

< div class = "footer" >

class "footer" goes here < /p > < p > content

< / div >

< / div >

< / div >

< / div >

< / body >

< / html >

Chris

Do the following mods

. Container {}

/ *margin: 10px; */

Width: 900px;

margin: auto;

/ *left: auto;

right: auto;

position: relative; */

}

or better yet, delete everything above and add the highlighted

{body

background-image: url(Images/website_background.jpg);

Width: 900px;

margin: auto;

}

If you choose the best option, so don't forget to remove the

...
of your document.

Tags: Dreamweaver

Similar Questions

  • quick question for position()

    If there is a code like this

    <? If:position()!=last()? >

    is there a code also for:

    If position = 3rd to the last
    then
    view varchar?


    Thank you

    I think you want:
    2? > print

  • DIFFICULT question: Z position impact on position look

    I have a sprite that I have to zoom out by using the sprite.z property. Once the property of z has changed the sprite x and Y values does not not to step x and y of real value. So far so good and I've been waiting for!

    I want to accomplish is that when the user clicks on the stage the interpolations of sprite to where the mouse is clicked, but I don't know what x and is set to send to the sprite. (since the stadium 200 200 is something like 400 400 for the sprite according to the value of z)

    I tried to Utils3D.projectVector using Matrix3D of the perspectiveProjection of the scene, without success. (i.e. I get Vector3D (infinite, infinite, or NaN))

    Pointers?

    I could retreat to scalex/scaley but sprites.z gives me the right scale, perspective, paralax scrolling projection since I sprites on z different level all free of charge. I would have to recode everything.

    It is an interesting question

    The formula for the coordinate x on the screen of a point in 3D space is:

    screen x = point x * (distance to screen / distance to point z)
    

    So, to get the 3D x from the x screen, you'd:

    point x = (screen x * distance to point z) / distance to screen
    

    This translation to AS3, you get:

    ...
           private function moveObjectTo3DFrom2D(object:DisplayObject, vX:int, vY:int):void {
                var cX:Number = root.transform.perspectiveProjection.projectionCenter.x;
                var cY:Number = root.transform.perspectiveProjection.projectionCenter.y;
                var f:Number = root.transform.perspectiveProjection.focalLength;
                with(object){
                    x = cX + ((f + object.z)*(vX - cX))/f;
                    y = cY + ((f + object.z)*(vY - cY))/f;
                }
            }
    ...
    
  • General question about position keyframes

    Hi all

    Æ noob here, that would be really grateful for the help. I have problems with a trajectory.

    My internship has a single object, a PNG, and I'm just trying to move it in a straight line across the screen. For some reason sequels keep doing making a back and forth along the path. In my view, it has to do with position keyframes, or something but cannot for the life of understand me.

    I've been Googling this for hours and try to understand it in the program but have gotten nowhere.

    I have attached the source here:

    http://DL.dropbox.com/u/4241134/motionproblem.AEP

    To sum up, I want to get rid of the 'zig zag' or 'backwards' the movement of the object.

    Thank you in advance.

    Ed

    The jargon of the untimely movement you see is a movement "boomerang". Search for the word 'boomerang' on this pageand you will find an explanation, a solution and a link to a video on this.

  • question of position: absolute

    I have a div that is position: absolute. I can't seem to float, there right or left. I need it to be centered between the 2 other divs. Is the only way to do in the margin to the left or to the right since the float will not work?

    Thank you

    You cannot have two meanings.  You can either position: absolute or float: right / left.

    Learn CSS positioning in 10 steps
    http://www.Barelyfitz.com/screencast/HTML-training/CSS/positioning/

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

  • &amp; lt;? PHP mail... question of position

    Fairly standard question I noticed a lot of .asp comments on the forum.

    I have a registration form that inserts a record and then redirects to a success of the register page.

    I also want the registersuccess page (or form) to automatically send an e-mail to me, including some information entered into the form fields - namely the unique identifier (email address). I can put like a hyperlink to enable me to connect directly to the online registration.

    I have sussed that's the line I want to use in the page of registersuccess:

    <? PHP mail ('[email protected]', "There is a new listing on the Site", $email);? >

    Call me stupid, but I can't work how to spread "$email" of a variable of form field on the previous page if no information is passed on the previous page.

    I tried to include? EMAIL = <? PHP echo $POST_VARS ["emailtextfield"];? > in the forwarding address when the form is submitted, but I get an error.

    Now I trying to figure out where I can put my "mail" code on the first page of the form, but has a lot of difficulties because it's complicated now by form checks and duplicate.

    Can anyone help?

    March 22, 2007 in macromedia.dreamweaver.appdev, RichardODreamweaver
    wrote:

    > I'm now trying to figure out where I can put my "mail" code in the
    > first page of form but have great difficulties at the moment
    > complicated by shape and duplicate checks.

    In the script that deals with the form)


    action = "thisisthefileyouwant.php" >), find the place where the insert behavior
    ends. Right after that, you put your code to send you email.
    Mail the visitor will still be in $_POST ['emailFieldName'].
    So:

    <>
    // ...
    Code to insert data ends here
    $to = "[email protected]";
    $subject = "inserted";
    $body = ' this record has been inserted: EMail: '. $_POST ['emailFieldName'];

    mail ($à, $subject, $body);
    ?>

    --
    Joe Makowiec
    http://Makowiec.NET/
    E-mail: http://makowiec.net/contact.php

  • Captivate 8 sensitive question of positioning

    Whenever I create something on the big screen (or smaller), even if I use "smartposition" and establish in percentage compared to the other items, I still have to format individually each individual view (monitor, Tablet, phone) because the formatting gets all messed up. Is there a way to get around this?

    The police must also be set up for each individual instance as well.

    Police: be sure to use web safe fonts. And don't you first set up the styles in the Style of the object manager? Each model can be set up for the 3 views of breakpoint.

    What version? Most recent is 8.0.1.242.

    And by design, we must start from the main stopping point, no sense of the Mobile display. Legacy is primary for Tablet and Mobile.

  • Question about positioning and filling

    I'm having a problem. I have an image of 500 px wide. I have a container 572 px wide. I set the top and left filling of the container to 72 px and right and bottom, padding to 0px. I think it would make the image completely to the right of the container. This isn't. He seems to have a px 72 on the right padding as well.

    Any suggestions?

    padding.png

    A fill is added to the width of the container, the width is now wide 644px after the addition of 72px padding left.

    What you need to do, it's either add margin top/left of the image:

    #container img {}

    margin: 72px 0 0 72px;

    }

    OR reduce the width of the container to 500px wide. You can still set the top margin on the container of 72px.

  • Video with no audio

    Hello

    I recently went to a concert and have some of the videos I recorded audio and some do not (sounds like static on a TV). I was wondering if there was any way to turn the sound on my existing recorded videos? I tried to go through question different positions but nothing did. I have an iPhone with the newest iOS 6

    Thank you!!!

    Hello

    While it will not help with your existing videos, the steps detailed here can help with respect to future recordings:

    If you identify a problem with the microphone, contact Apple technical support or make a reservation at the Genius Bar.

  • Activate button used

    Hi all..

    As a beginner with Labview, I was very happy to have these forums to help me with many questions, other positions.

    Although this time I could not find an answer, so here.

    I'm a VI that will allow me to send messages SMS from my computer. My computer is connected to a GSM modem, and there's a Subvi, which controls the serial connection.

    The problem I have now is that my button to send orders (the one that activates the structure of my case) will not activate. I tried to add a LED to see if that would show anything, but it made no difference. The LED is not turning on.

    Basically what I do, is I have a textfield for the number of beneficiaries that adds "at + cmgs = + 45 ' in front of her and the ascii value of hex 0 D after her. Then a textfield for the message, where I add the ascii value of the hexagonal 1 eventually has to send.

    This configuration works in smaller steps, like Sms_Send3, but it is Sms_send5 that I have problems with it.

    Any ideas? :-)

    Edit: Minor typo fault

    Edit: If I add an indicator to the while loop, it seems that while the loop is not running at all?

    I realized I could do what I wanted to do with a sequence...

    It's a little embarrassing for having discovered it was something so simple.

    Thanks a lot for your help though guys... Appreciate it :-)

    Kind regards...

  • How do you get the two engines alternately

    I have therefore two SilverPak engines 23CE I'm control with LabVIEW.  The ultimate goal is to attach them to the x - and y-size of a square plate and move it into a dither motion - that is, through a line of specified length down a bit, then again in the other direction and down once again, etc.  I got to the point where I can give them each specification in what concerns how far and in what direction and both go at the same time, but I need to make them wait turns so that a single engine is running at the same time in order to get the type of movement, I want.  I think I can't or work in a delay time for each engine determined by the characteristics of the other (speed, acceleration and distance, everything I put it) or else the work to a Boolean value that checks to see if engine #1 is running before starting the engine #2, and vice versa.

    I work with these engines for three days now and just LabVIEW for the first time the day prior to that, so all for a n00b's kind words are much appreciated.

    Thank you!

    -Nelly

    Hi Nelly,

    Welcome to the Forums of Discussion OR! I took a brief look through the manual SilverPak for orders of the unit here: http://www.linengineering.com/LinE/contents/stepmotors/pdf/Silverpak23C-R356Commands.pdf. It is possible to use the information of speed and acceleration, it seems that there may be a more direct way to wait for a move be complete using one of the commands query on page 10. I'm not too familiar with these units of engine or the amplifier, but you should be able to question the position of motor with 1? command 0. So, you can issue a command of the first engine and then constantly question the engine until the desired position is reached and then runs the next step.

    To do this, you can benefit from a state machine for your code architecture: http://www.ni.com/white-paper/3024/en. Essentially, you can have a set of States for your system (for example to move X, move Y) and you can move from one State to another based on certain conditions (for example the position of X has reached a threshold). While it may take a little more time to set up initially, it will make future additions to your code much simpler. Please take a look at the link and let me know if you have any other questions.

  • Drop-down menus appear in the wrong place

    Some of my menus appear in the wrong place. Seems to be limited to those in the Panel on the right... Also, it seems to be related to windows 10's high resolution display scaling, because it solves the problem to initialize it to 100% (but causes many others...) I also tried to go to lightroom.exe properties to disable the high DPI scaling, but it makes no difference... Is this a bug, or is there something else I can do to fix this?
    Skjermbilde 2016-06-22 14.41.41.png

    Hi AASOS,.

    This issue has been traced.

    Refer to this link: 2015.6 Lightroom: list dropdown question menu position with screen high resolution | Community customer Photoshop family

    Concerning

    Claes

  • My drop-down lists appear on the image window after the last update

    1.jpg

    Hi Alp Er Tunga,

    Please take a look at the following link: 2015.6 Lightroom: list dropdown question menu position with screen high resolution | Community customer Photoshop family

    Concerning

    Tanuj

  • problem after upgrade 6.6 LR error window. camera raw 9.6

    Hello, today I updated lightroom and hidden Windows opened very distant and not covered by the right key. does anyone have the same problems?

    1.jpg

    Hi angelol,

    Please add your vote on the official thread: 2015.6 Lightroom: list dropdown question menu position with screen high resolution | Community customer Photoshop family

    Concerning

    Claes

  • Why Photoshop NEVER remembers my places of dialogue?

    I use PS CC on a installer of Win 7 Desktop dual screen, and every time I use a tool or initiate an action menu image > Image size, PS invariably puts the dialog box in the center of the screen one or some place randomly on two monitor.  It doesn't matter how many times I put the dialog box where I want it before you click 'OK', the next time that I realize that same action PS will do the same, it did the time before, to know what he wants to do.  I'm not on a laptop, and I'm not changing resolutions or anything else that would confuse the program.  I use a custom workspace program remembers, but it's the only thing that it based on what I want.  I have not had this problem with previous versions, which has always placed the dialogues to the place where they were closed last.

    Herbert2001 wrote:

    Strange, no problem here, regarding dialogue position in CC2015. They appear where I closed them last. I'm also under Windows 7 64-bit.

    There is a problem in CC 2015 Adobe rewritten ScriptUI.  They did not do a good job, there are questions. Positioning of dialogue is one. All the Script dialog box are centered. Try the Adobe Script dialog box not centered position. I try to position my 100px to top left of dialog script px to and 100 down in the main Photoshop window. It works in 2014 CC not in 2015 CC all script dialog boxes are centered in the main window of Photoshop in 2015 of CC. Here is a list of Scripts of 2015 CC from Adobe.  I don't have the problem of th OP to also use two or three displays most of the time.  I don't use CC 2015 too many questions for me in...

Maybe you are looking for

  • Microphone AT2020usb

    Entry into his mini mac OS 10.11.6 preferences can't find Audio Technica USB mic, but mic is powered from the computer.

  • my iphone 4S hanged and black screen

    I used the iPhone 4 (factory unlocked) for over a year now with only minor problems. Like a regular day, I was typing a message to my friend, but suddenly he hung then black screen follows... It was a shock suddenly! . I just put the phone to rest fo

  • How it syncs FF 3 instances open on 3 pc?

    Lets say that I have all the pc's on 3 and FF are open to everyone. (Humor me, I know, who has 3 pc at the same time) I'm working on that becomes the primary and changes the others? In other words, if I add a few bookmarks on one and delete some it w

  • My screen will not lighten or darken

    The screen of my MacBook Air will not lighten or darken. OS X El Capitan v. 10.11.4. Did not change in preferences.

  • STR DH 770 remote RMT-AA231U

    Looking for info on the programming of the remote control. I'd be able to do to turn on the TV and the? What of the decoder, it makes it work, too?