Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    1
    Member #
    40094

    aligning 3 divs inside another div?

    Hello guys,
    This is my first post, I hope to become a dedicated member in this forum and contribute often....
    But, at first, I'm starting out with asking for help.

    I was told to align three divs centered in another div, you had to do it in this order:
    Left, Right, Center.
    So first div you'd align to the left, second one to the right, and last one in the center to make them all equal.

    I've tried that, no luck.

    Webpage i'm working with is Phelt Noise Art Collective

    It's been a few years since i've done any thing that's web based, so i'm trying to get back into the swing of things.

  2.  

  3. #2
    Senior Member sasha_bolcina's Avatar
    Join Date
    Sep 2014
    Location
    Serbia
    Posts
    274
    Member #
    40099
    Liked
    47 times
    Instead of "float:center" put "margin: 0 auto"
    Center value for property float is not exists.
    Remove hash (#) from id. id='#comment43' should be id='comment43'

    I think you have problems in layout structure.

    Edit:
    Your center div is not last in html. Structure in html should be:
    "LEFT DIV" "RIGHT DIV" "CENTER DIV"
    Last edited by sasha_bolcina; Sep 09th, 2014 at 02:23 AM.

  4. #3
    Banned
    Join Date
    Sep 2014
    Posts
    21
    Member #
    40215
    Liked
    1 times
    hi,first 3 divs are equal space split,next height set for the divs,
    there are 3divs used in float:left;
    background color used to different color in 3 divs,first div left,second right,third div center,
    Thanks


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:58 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com