Centering with CSS inside a div box

Am subbing on a job, would appreciate help:
I am trying to center the three columns inside the address
box at the bottom
of the page.
http://www.mariagrist.net/dev/motors/bodyshop.htm
It should look just like the box at the bottom of the main
page
http://www.mariagrist.net/dev/motors/default.html
but with content centered.
I copied the divs from the default.htm but am changing them
in order to try
to center the content. So far I have only made it worse
because now the
columns are all on top of each other.
Thanks

Thanks heaps, that's exactly what I wanted it to do.
Aren't these forums just magnificent.
"Osgood" <[email protected]> wrote in
message
news:[email protected]...
> Pixel Warrior wrote:
>
>> Am subbing on a job, would appreciate help:
>> I am trying to center the three columns inside the
address box at the
>> bottom of the page.
>>
>>
http://www.mariagrist.net/dev/motors/bodyshop.htm
>>
>> It should look just like the box at the bottom of
the main page
>>
http://www.mariagrist.net/dev/motors/default.html
but with content
>> centered.
>> I copied the divs from the default.htm but am
changing them in order to
>> try to center the content. So far I have only made
it worse because now
>> the columns are all on top of each other.
>> Thanks
> First off you need to change all thress <div
class="address_item_content
> divided"> to <div class="address_item_content">
Just drop the 'divided'
> part.
>
> Next you need to wrap the three newly nmed <divs>
'address_item_content'
> <divs> in another wrapper. See the code below
(scroll down) I've named it
> 'addressHolder'
>
> Find your .address_item_content css and make sure it
looks the same as
> this:
>
> .address_item_content {
> float: left;
> width: 115px;
> padding-left: 30px;
> margin-top: 16px;
> font-size: 11px;
> border-left: 1px solid #000;
> }
>
> add the addressHolder css to your stylesheet.
>
> #addressHolder {
> width: 438px;
> margin: 0 auto;
> }
>
>
>
> Heres the section of code starting and ending with the
> 'address_box_content' <div>
>
> Note to get rid of the 1px solid dividing line on the
left of the first
> 'address_item_content' <div> use some inline css
styling
> 'style="border-left: none;" plus <br style-"clear:
both;"> has been
> inserted after the 'addressHolder'<div> to pull
the 'address_box_content'
> <div> around the three addresses.
>
>
> CODE
>
> <div id="address_box_content">
> <div id="addressHolder">
> <div class="address_item_content" style="border-left:
none;">
> <div id="content_title">DERWENT PARK</div>
> 8c Lampton Ave<br>
> Ph: 03 6211 0660<br>
> </div>
>
> <div class="address_item_content">
> <div id="content_title">DEVONPORT</div>
> 6-8 Victoria Pde<br>
> Ph: 03 6420 4531<br>
> </div>
>
> <div class="address_item_content">
> <div id="content_title">BURNIE</div>
> 60-65 Marine Tce<br>
> Ph :03 6430 2440<br>
> </div>
> </div><!-- end addressHolder -->
> <br style="clear: both;">
> </div><!-- end address_box_content -->
>

Similar Messages

  • Need help with how to shrink DIV boxes with text in them

    Hi,
    I am coming up the learning curve with Dreamweaver CS3.
    Within a container section, I have enclosed text with DIV
    tags, creating a CSS ID to add color to the background, and then
    applied other class styles to the text. Result is that now the text
    is enclosed by the background color applied to the CSS ID box.
    What can you do to tighten-up the box around the text? Tried
    playing with the BOX properties but the background shrinks leaving
    white space between the BOX area and adjacent DIVs (how do get rid
    of the white space??) and the text stays in the same spot, the box
    showing sometimes only partial text.
    What I want is to create is rows of links/text, each row with
    a different colored background, the box tightly wrapped around the
    text, and no white space between the boxes. How do I do that?
    Help is greatly appreciated, as a newbie I can get 90% there
    but the finer details still escape me. Thanks for your help.

    Hi,
    I am coming up the learning curve with Dreamweaver CS3.
    Within a container section, I have enclosed text with DIV
    tags, creating a CSS ID to add color to the background, and then
    applied other class styles to the text. Result is that now the text
    is enclosed by the background color applied to the CSS ID box.
    What can you do to tighten-up the box around the text? Tried
    playing with the BOX properties but the background shrinks leaving
    white space between the BOX area and adjacent DIVs (how do get rid
    of the white space??) and the text stays in the same spot, the box
    showing sometimes only partial text.
    What I want is to create is rows of links/text, each row with
    a different colored background, the box tightly wrapped around the
    text, and no white space between the boxes. How do I do that?
    Help is greatly appreciated, as a newbie I can get 90% there
    but the finer details still escape me. Thanks for your help.

  • I need help Centering a div box to a background image using dreamweaver cs5.5.

    I need help Centering a div box to a background image using dreamweaver cs5.5. Everything shift left when viewing on different size monitors?  See what I mean at
    www.woodlandhospice.com

    Have you looked at your page with images disabled?
    I urge you to re-think this approach to web design because images of text are not indexed by search engines, screen readers or translators.  Given the demographic group your site is targeting, you really need to ensure maximum web accessibility for all users.
    Navigation, headings and descriptions all need to be in real text -- not images of text.
    Ken is right.  Absolute positioning is pure poison for such a simple layout.  My advice is to start over with one of the pre-built Starter Pages in DW.  Go to File > New > Blank page > HTML.  Select a layout from the 3rd column and hit CREATE button.
    Nancy O.

  • Centering a file in the browser vertically with CSS

    I remember there was an issue doing this with tables and I am
    wondering
    if this is also hard to to with CSS. I would like to center a
    flash
    file, both vertically and horizontally. I have it centered
    horizontally
    but not vertically. This is what I have so far.
    body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    #container {
    width: 800px;
    margin: 0 auto;
    background-color:25231a;
    My flash file is inside of the container in the html file.
    What do I need to do, to get this centered vertically as
    well?
    I tried this, but with no luck.
    #container {
    width: 800px;
    margin: auto;
    background-color:25231a;
    Thank you for any help!
    Brian

    If I don't hear anything positive from Adobe about fixing it,
    I am going to
    be much more vocal.
    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
    ==================
    ".: Nadia :. **AdobeCommunityExpert**"
    <[email protected]> wrote in
    message
    news:[email protected]...
    > It is getting more and more difficult to support such
    posts. I don't have
    > that much time to copy and paste a link,find it's wrong
    and then have to
    > copy and paste again...........
    >
    >
    > --
    > Nadia
    > Adobe� Community Expert : Dreamweaver
    > --------------------------------------------
    >
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    > --------------------------------------------
    >
    http://www.perrelink.com.au
    - Web Dev
    >
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    >
    http://www.adobe.com/devnet/dreamweaver/css.html
    > -------------------------------------------------
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >>I will no longer support posts that contain broken
    links like that.
    >>
    >> --
    >> 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
    >> ==================
    >>
    >>
    >> ".: Nadia :. ACE :."
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> OMG - nothing against you Excavatorak, but links
    posted via the web
    >>> forum interface come through as an absolute mess
    on the nttp forum :\
    >>>
    >>>
    >>> --
    >>> Nadia
    >>> Adobe� Community Expert : Dreamweaver
    >>> --------------------------------------------
    >>>
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    >>> --------------------------------------------
    >>>
    http://www.perrelink.com.au
    - Web Dev
    >>>
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    >>>
    http://www.adobe.com/devnet/dreamweaver/css.html
    >>>
    >>>
    >>>
    >>>
    >>>
    >>> "Excavatorak" <[email protected]> wrote
    in message
    >>> news:[email protected]...
    >>>> <a target=_blank
    class=ftalternatingbarlinklarge
    >>>> href="
    http://www.jakpsatweb.cz/css/css-vertical-center-solution.html">http://www
    >>>>
    .jakpsatweb.cz/css/css-vertical-center-solution.html</a>
    >>>> <a target=_blank
    class=ftalternatingbarlinklarge
    >>>> href="
    http://milov.nl/code/css/verticalcenter.html">http://milov.nl/code/css/ver
    >>>> ticalcenter.html</a>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Insert a div box background for one document only while using external CSS style sheet.

    I am trying to set a background image in one of my div boxes, but because I am using an external style sheet it changes it in all my documents. How can I do it with just this one page? Preferably in design mode.

    What i did to slove this problem was:
    Open my external CSS style sheet
    Copy the contents of it
    Remove the CSS link in the one page i wanted to be different.
    Pasted the contents in the <head> under the rest of the CSS rules for that page.
    Then I could set the background for that box w/o altering the other pages..
    I tried the other suggestions, but could not get them to work. Not saying they are wrong, but maybe i was implementing them wrong.

  • Show/Hide Div Layer with CSS (k)

    Is there a way you can control the visibility of a Div Layer
    without
    Javascript? Using CSS perhaps?
    Even though a small percentage doesn't have Javascript
    enabled, I need
    to have something to show. In this case a webpage that has
    button when
    clicked shows a layer.
    Can this be accomplished with CSS?
    -Kirk

    "Thierry" <[email protected]> wrote in message
    news:foqle4$470$[email protected]..
    > fwiw, I don't see an issue with that. I think the user
    would get (fast) a
    > pretty good understanding of how things work.
    > imho, it'd be like saying a flyout menu is buggy because
    once submenus are
    > opened and the user clicks outside of them they close...
    > This is part of UE, I think it's an "expected behavior".
    > As a side note, I don't think this gallery is more
    confusing than a
    > lightbox gallery ;)
    Clicks, to the average user's grasp of conventional wisdom,
    are permanent.
    You click and something happens. We're talking about web
    pages here, not OS
    controls -- so a Windows flyout menu that initializes on
    click, works on
    mouseover, and closes onclick is not necessarily a good
    analogy. I would bet
    a tidy sum that any focus group that did not include web
    designers would,
    consensually, be confused by that page. Moreover, the
    behavior is not the
    same in all browsers.
    > ...and on top of that, it is very keyboard friendly.
    > So it is not *that* bad...
    That's the only good thing - but making a page that works
    well for keyboard
    users at the expense of the rest of the world is not logical.
    But hell, if Kirk likes that technique, he is certainly free
    to use it. I
    was just reading through this forum today and was kind of
    surprised to see
    someone recommending that technique.
    Que sera.
    Al Sparber - PVII
    http://www.projectseven.com
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"

  • HELP- VISTA problem with div inside of div

    Hi all,
    I need some Dreamweaver CSS help. I put together a profile Web site, http://lizconnolly.com/index.html and in VISTA/IE the yellow bio box inside the gray box is being pushed down. The box looks fine in Firefox and Safari, and I am not sure what the problem is.
    My css file link is: http://lizconnolly.com/Connolly.css
    Please help if you can.
    Thank you for your help.
    Liz

    As I said in my earlier post, the pages look similar in both IE7 and FFox. The text is very close to the bottom line, but not spilling out of the box.

  • I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    Restart your Mac and immediately hold down the Shift key when you hear the startup chime to boot into Safe Mode. Keep holding the Shift key until you see a progress bar towards the bottom of the screen. You can let go of the Shift key at that point.
    OS X asks you to log in (you will get this screen on a Safe Mode boot even if your Mac is set to automatically log in). Let the Mac finish booting to the desktop and then restart normally. This will clear Font Book's database and the cache files of the user account you logged into in Safe Mode.
    Next, close all running applications. From an administrator account, open the Terminal app and enter the following command. You can also copy/paste it from here into the Terminal window:
    sudo atsutil databases -remove
    Terminal will then ask for your admin password. As you type, it will not show anything, so be sure to enter it correctly.
    This removes all font cache files. Both for the system and the current user font cache files. After running the command, close Terminal and immediately restart your Mac.

  • Problems with CSS Footer Div

    Problems with CSS
    I am building a new page for my company. I am trying to place the Div Footer at the bottom of the screen. I have placed (i believe) the appropriate information for the CSS.
    The problem is when i minimize the browser the Footer section never leaves the screen and hovers over the other div tags. When I shrink the browser to its maximum the divs fall on top of each other.
    What I would like to know is how to make the Footer div below hide like the other divs but remain at the bottom of the page instead of hovering over the other divs. I have read that I should not apply fixed divs.... is that correct?
    I have applied to the current CSS to the below web page: http://trbla.com/sample.html
    #rhythm {
    width: 607px;
    margin-top: 300px;
    margin-right: auto;
    margin-left: auto;
    *img {
    border: 0;
    #rhythm #goldr {
    width: 215px;
    float: left;
    border: 0;
    #rhythm #trbnew {
    float: left;
    width: 181px;
    border: 0;
    #rhythm #greyr {
    width: 211px;
    float: left;
    border: 0;
    #nav {
    margin-top: 200px;
    width: 607px;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 100px;
    clear: both;
    #nav #navonewrap {
    float: left;
    clear: both;
    #nav #navwraptwo {
    float: left;
    width: 175px;
    height: 22px;
    #nav #navwrapthree {
    float: right;
    width: 215px;
    margin-right: -75px;
    #footer {
    bottom: 0px;
    clear: both;
    position: fixed;
    width: 100%;
    #footer #left_footer {
    float: left;
    clear: left;
    overflow: hidden;
    #footer #r_footer {
    float: right;
    Thanks for anyones help thus far,
    Rhythm

    I think it's the way I'm doing the conditional statement.
    'Went through another knowledge-base article that basically had me
    incorporate the conditional attribute into the <xsl:for-each
    select= . . .> statement and it appears to be a better way. I
    also created a xslt fragment and inserted it into a php page rather
    than making the whole thing xslt. I think this helps as well, but
    can't absolutely close the book on this until the server is
    properly configured to transform xslt in php pages.
    Here's the latest
    http://cals.arizona.edu/arizonawet/workshops/current_workshops-trial2.php

  • How to move Firefox4 Tabs to the Bottom like opera the userChome.css #content tabbox { -moz-box-direction: reverse; } does't work ,and tabmix extension is s incompatible with Firefox 4.

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/780590]''
    I want move Firefox tabs to the bottom like opera
    but the code of userChome.css
    #content > tabbox { -moz-box-direction: reverse; }
    does'nt work,
    and tabmix can do this,but current version of tabmix is incompatible with Firefox 4.

    You can get the development version of Tab Mix Plus which works with Firefox 4 from http://tmp.garyr.net/forum/viewtopic.php?t=10888
    The author of Tab Mix Plus has stated that he is almost ready to release a new version of Tab Mix Plus.

  • Got myself stuck with css

    I've gotten myself really stuck with my css layout. I've
    basically followed a couple of different tutorials to get where I
    am. if you'll visit
    http://eliteportraits.com/teetest/
    you can see the effort so far. Where i'm stuck is the main content
    block. I read different things on nesting div tags and can't figure
    out how to do this with or without nested tags. I basically want a
    white background for everything under the purple menu bar (I'd also
    like that bar to extend to the edge of the top rounded white
    graphic.). I ca't seem to make it work. what am I screwing
    up/missing? is there a tutorial somewhere that can help? This is
    the last thing I've got to figure out before I can finally move
    forward. thanks so much for any help.
    Mark

    eliteportraits wrote:
    > If you look to the logo on top of the page (above the
    purple bar), there's
    > text immediately to the right of the logo that says
    "some menu links here, like
    > shopping cart and such" - I would like that line of text
    to sit on top of the
    > purple bar (about 10px above the purple bar) and be
    aligned to the right edge
    > of the page. right now the text is aligned with the top
    of the image.
    Then you need to put that line of text in its own container,
    a <div> <p>
    <h> whatever. Lets just use another <div> for
    now. Insert the new <div>
    in your pages code, right after your logo image (see below)
    <div id="top">
    <img src="tutorial_files/logo.jpg">
    <div id="topRight">some menu links here, like shopping
    cart and
    such</div><!-- end topRight -->
    </div><!-- end top -->
    Then use some css to style/position the new <div>
    #topRight {
    float: right;
    width: 350px;
    text-align: right;
    padding-top: 65px;
    Back-tracking on what I said yesterday about
    relative/absolute
    positioning you could also make the 'top' <div> have a
    position of
    relative and then the 'topRight' <div> a position of
    absolute to place
    it in the position required.
    #top {
    position: relative;
    #topRight {
    position: absolute;
    top: 85px;
    right: 0;
    width: 350px;
    text-align: right;
    This is one of the only times you should need to use relative
    positioning on a container i.e., when you require an
    absolutely
    positioned element to sit within it. However if there is an
    alternative
    way of achieving the same results then personally I would
    always use
    that method in preference. Many beginners just use relative
    positioning
    all over the place without really understanding what they are
    doing. Not
    all, but in the majority of cases, it is not required.
    Don't be afraid to experiment with css to see what results
    can be
    achieved using various combinations. Once you grasp the
    basics then the
    rest will fall into place quite quickly.
    The key is to think boxes being positioned by using
    margin/padding.
    Where people go wrong is they tend to use too many boxes
    which results
    in too many elements to keep track of or just plain don't do
    the maths
    needed to make css work.
    Always comment the end of a container </div><!-- end
    header --> or you
    can put the comment inside the closing tag <!-- end header
    --></div>
    This will make it easier to identify them when the page gets
    more complex.

  • Centering with layers problem

    I have a problem centering a layer that has an image with
    relative positioning. I've replicated this phenomena with some
    basic code to make it easy to convey:
    I would like to position a layer with an image that is
    horizontally center to the page regardless of the screen
    resolution. I created a div tag called "layer1" with the
    appropriate descriptors below. This "appears" to center the image,
    but when I take my pencil and measure the left and right of the red
    box, it is clear that there are different measurements. When I
    center text just above the centered image, it is immediately
    apparent that the jpeg is not totally in the center. I've tried
    looking at it in 800x600 and higher resolutions, all with the same
    results.
    This is a big deal since the more complicated code where I am
    trying to center the layer with the image offsets images to where
    the entire page looks jumbled.
    I've attached the html code so you can see what I am doing.
    The image is just a red box that I made with GIMP.
    Can anyone see my error?

    > regardless of the screen resolution
    Just so you'll know, this is NOT a resolution issue. It's a
    browser
    viewport width issue. The same page will look the same on
    *any* resolution
    screen as long as the browser viewport is the same width in
    pixels on all
    screens.
    Put a border around your "pseudo-layer" (it's not a layer)
    and you'll see
    that it is in fact completely centered on all browser widths
    on any
    resolution screen.
    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
    ==================
    "SysTechGuy" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a problem centering a layer that has an image with
    relative
    >positioning.
    > I've replicated this phenomena with some basic code to
    make it easy to
    > convey:
    >
    > I would like to position a layer with an image that is
    horizontally center
    > to
    > the page regardless of the screen resolution. I created
    a div tag called
    > "layer1" with the appropriate descriptors below. This
    "appears" to center
    > the
    > image, but when I take my pencil and measure the left
    and right of the red
    > box,
    > it is clear that there are different measurements. When
    I center text
    > just
    > above the centered image, it is immediately apparent
    that the jpeg is not
    > totally in the center. I've tried looking at it in
    800x600 and higher
    > resolutions, all with the same results.
    > This is a big deal since the more complicated code where
    I am trying to
    > center
    > the layer with the image offsets images to where the
    entire page looks
    > jumbled.
    >
    > I've attached the html code so you can see what I am
    doing. The image is
    > just
    > a red box that I made with GIMP.
    >
    > Can anyone see my error?
    >
    >
    > #layer1{
    > position:relative;
    > width:200px;
    > height:115px;
    > z-index:1;
    > top:50px;
    > margin:0 auto;
    > }
    >
    > <title>Untitled Document</title>
    > <script language="JavaScript"
    type="text/JavaScript">
    > <!--
    > function MM_reloadPage(init) { //reloads the window if
    Nav4 resized
    > if (init==true) with (navigator) {if
    >
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    > document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    > onresize=MM_reloadPage; }}
    > else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH)
    > location.reload();
    > }
    > MM_reloadPage(true);
    > //-->
    > </script>
    > <link href="layer_test.css" rel="stylesheet"
    type="text/css">
    > </head>
    >
    > <body>
    > <div align="center">
    > <p>This is a test for layering </p>
    > <p>  </p>
    > </div>
    >
    > <div id="layer1"><img
    src="Practice_Pics/red.jpg"></div>
    > </body>
    > </html>
    >

  • Trouble with rollover image in div

    Hello there,
    I am having some trouble with the following.
    I want to create a rollover image 90 pxl x 90 pxl and put it inside a div 90 pxl x 90 pxl.
    The div is inside other divs and makes up a kind of a table. I checked that all the div and image sizes are the same but when I place the cursor inside the div and select 'insert rollover image', my images are all squashed up and don't appear normal size. Very odd.
    Here is some of my code:
    CSS of div (I want to put my image inside smallBox01a)
    #Header #rightColumn #smallBox01 {
        height: 90px;
        width: 270px;
    #Header #rightColumn #smallBox01 #smallBox01a {
        float: left;
        height: 90px;
        width: 90px;
    HTML
          <div id="smallBox01a"><a href="tobi.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('tobi','','Images/TobiOver.jpg',1)"><img src="Images/TobiOff.jpg" alt="Tobi" name="tobi" width="90" height="90" border="0" id="tobi" /></a></div>
    Poor old Tobi cat's face is all squashed up. Any idea what is going wrong? I don't have any padding within the div either.
    Thanks!
    PS I also should add that when I tried to simply add in one of the Tobi images instead of the rollover image, it appeared perfectly fine within the div. It is only the rollover that is getting vertically squashed up.

    So, I've been playing around with your page in dreamweaver and I put a <div> container around your entire web page and then set the width to 1200px. That contained all the contents so that when you re-size the web page the contents don't colapse.
    Not sure if that's what Murray or Nancy mean and am curious if their is a better way.
    That would work although 1200px is too wide.  Something along the lines of 1000px would be better, since you want the page to display in a maximized browser viewport on a 1024 screen without dropping horizontal scrollbars.  I still use 960px as a maximum width....
    Re the centering of the page: Good question I would like to know how to do it "properly"
    In the CSS body rule I put:  margin-left: 20%;
                                                margin-right: 20%;
    Again, I'm not sure if that's the correct way to center the page, and would like to know a better way.
    It's not the best way to do this, which would be to use a fixed width container (as you have done) and just assign it left/right margin settings of 'auto', e.g.,
    #container { width:960px; margin:0 auto; }
    You can center *any* block element within its container with this method.

  • Problem with css processing in Firefox8 on Win7.

    Hi guys. I have a problem with css processing in Firefox8 on Win7. I need to make div which width and left css properties should be dynamically changed. Inside this div i have an swf object. When i change width and left css styles for my div, it jumps on the page, but other browsers render that well. What can you suggest to fix this problem? Thanks

    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    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.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • How can i postition an image inside a div correctly?

    I am learning CSS and I want to insert an image inside a div
    used as a footer. I want the image to appear to the left of the div
    with say 10px left margin and 5px top and bottom.
    I also have a horizontal UL and a <p> inside the div
    which are set to the centre. I want to keep their appearance as
    they are - but add the image to the left without putting anything
    else out of place if that makes sense.
    Can someone show me how it is done?
    http://www.tomkilbourn.com/newsite/test/footer.html
    The image which I want to use is from validator.wc3.org -
    <p>
    <a href="
    http://validator.w3.org/check?uri=referer"><img
    src="
    http://www.w3.org/Icons/valid-xhtml10"
    alt="Valid XHTML 1.0 Transitional" height="31" width="88"
    /></a>
    </p>

    ~Billy~ wrote:
    > Ive got it to work by adding -
    >
    > <span
    style="position:absolute;top:27px;left:20px;">
    > <img src="/newsite/images/valid-xhtml10.png"
    /></span>
    >
    > before the closing body tag, but is there a way to do it
    without using
    > absolute positioning and span?
    >
    Id' do it by adding position relative to my footer div and
    then I'd
    create a class for the img and use absolute positioning for
    it which if
    nested within the footer div will be relative to that - like
    so.....
    in your css...
    #footer {
    border-top: 1px solid rgb(187, 187, 187);
    padding: 0px 0px 10px;
    background-color: rgb(51, 0, 0);
    position: relative;
    .w3c {
    position: absolute;
    top: 10px;
    right: 20px;
    and your html markup for your footer dive, something like....
    <div id="footer">
    <img src="/newsite/images/valid-xhtml10.png" alt="alt text
    here"
    class="w3c" />
    <ul id="navlist">
    <li><a href="#">Item one</a></li>
    <li><a href="#">Item two</a></li>
    <li><a href="#">Item three</a></li>
    <li><a href="#">Item four</a></li>
    <li class="last"><a href="#">Item
    five</a></li>
    </ul>
    <p id="footerbottom">Copyright Tom Kilbourn 2007
    www.tomkilbourn.com</p>
    </div>
    chin chin
    Sinclair

Maybe you are looking for

  • How to setup Final Cut to preivew on HD TV (beginner question)

    FINAL CUT NEWBIE HERE... I just got a new Mac Pro and the new Final Cut studio. I'm trying to figure out the best way to set everything up. I've been watching a lot of the videos on Apple's website about the new features and the "In action" videos. O

  • HS connection to MySQL

    Hi, I am trying to do the HS connection btw oracle and MySQL. I have created a initmysq.ora at HS\ADMIN And added entry in tnsname.ora and listener.ora. But if it start a Lsnrctl reload i am seeing Service "mysqldev" has 1 instance(s). Instance "mysq

  • Dispute Case - Write-off entry

    Dear Experts, When we write off any invoice through UDM_AUTOWRITEOFF in FSCM, system Debits the Bad debts write off (P&L) A/c and Credits the Customer A/c. However, we want system to segregate VAT, Tax and Freight amount from Bad debts write off A/c.

  • Af:selectManyChoice transient variable to show selected rec in edit mode

    Hi All, Previous i have asked about af:selectManyChoice. My requirement i have two tables HeadTab and ChildTab. In my jsff , am showing HeadTab in table grid .In HeadTabVO , i have created a transient variable named chDetail. In table grid , am using

  • Lost iPhone 4, how find out IMEI-number

    Hello, i lost my iPhone, how i can find out IMEI number with out phone, may be in iTunes, or else