+ Reply to Thread
Results 1 to 4 of 4

Thread: Horizontal centering DIV question

  1. #1

    Horizontal centering DIV question

    Probably a stupid question.

    View the attached image:

    My div container (entire black area) holds 1 entire swf.

    I want the white box to be in the center of the browser no matter how it's resized. As of now, when the width of the browser resizes it will still show the 200px or so of that black area on the left side.

    I know it's possible with flash but I'm curious if there is a quick fix in CSS for the div to be absolutely centered? Huge flash project that got widened and now find myself in this silly situation and am trying not to have to change 100 files in flash.

    Hope that makes sense.

    Thanks in advance!
    Brian
    Attached Images


  2. #2
    #divID{ width:yourWidthpx; margin:0 auto; }

  3. #3
    Thanks but still have the problem.

    View the site here:
    Welcome to The Cardon Group.com

    if you resize the width of the browser the left side shows about 200px of the black area. Is there a way to completely center the entire flash piece to have the registration point in the very middle of the browser? if that makes sense?

    bD

  4. #4
    Your Flash seems to be full page, it needs to be the same with as the container for it to work.

    EDIT: 1260px wide is mad, it should be 960px max. That's why it doesn't centre, it's too big for any monitor <1280px.

+ Reply to Thread

Similar Threads

  1. Horizontal Web Designs?
    By StiligeCecilie in forum General Web Design Forum
    Replies: 12
    Last Post: 25-06-2009, 03:15 PM
  2. Centering text
    By gedlawson in forum Graphic Design and Web Design Help
    Replies: 7
    Last Post: 07-01-2009, 12:45 PM
  3. Centering a list?
    By MeganS in forum Graphic Design and Web Design Help
    Replies: 13
    Last Post: 18-12-2008, 03:31 PM
  4. Centering a button
    By Eggbox in forum CSS Forum
    Replies: 3
    Last Post: 27-11-2008, 07:48 AM
  5. Centering a BG outside of a container
    By mattpowers in forum CSS Forum
    Replies: 2
    Last Post: 29-07-2008, 01:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


The Graphics Forum Web Design Stuff Free Decent Downloads Free Quality Wallpapers Graphics Forum Free Vista Themes
The Top The Best Images Tech Talk 247 Logo Design - $149 Affordable Stock Vector Illustrations Creativecurio - Design Blog Graphic Design Advertising

Check the forum often for the latest design announcements. Everything from graphic design and web design, to films and music. Estetica is a great place for people to get together and help each other out.



Web Hosting - UK Web Hosting services for business or personal website hosting needs.

Dedicated Servers - A full range of Managed Dedicated Server solutions suitable for all your requirements.

Graphic Design Blog | Web Design Forum | Graphic Design and Print Forum | Graphic Design Links | Advertise On This Site

Web Design UK | Vision.To Design | Leaflet Printing | Estetica Design Forum's Privacy Policy

Flyer Printing | Photography Blog | Design Forum Links | Logo Design | Graphic Design Social Network | Logo Design

Graphic Design Tutorials | Logo Designer | UK Logo Design Studio | Land for sale | Vector Art Blog

Free Web Hosting | Custom Logo Design - $149 Only | Affordable Print Design Templates | Small Business Logo Design | Company Logo Design

Logo Design Service | Logo Design Firm | Logo Design Reseller | Custom Logo Design | Letterhead Printing | Flyer Printing | Business Card Printing

Printing | Leaflet Printing | Online Backup | T-Shirt Printing | Personalised Mugs | Canvas Printing

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1