Results 1 to 3 of 3
  1. #1

    Default Help! DIV Horizontal Positioning


    Mga bro.

    kinsa expert ninyo CSS Div. Pa help ko beh, unsa-on nako pag align Horizontally ang duha ka DIV without using "float:left"?

    Ako-a na gi try ni ug google. pero wala jud exact solution to the problem. Naa pud rare ra kaayo, dili pa jud browser independent.

    Daghang Salamat!

  2. #2
    hindi ka nag-iisa ana bro. daghan na sad nangutana ana

    the usual solution is to use a list (<LI>) pero mag 'float:left' sad lagi ka.

    kung dili ka ganahan ana then you can try setting your divs at absolute positions.

    e.g.

    #div1 { position:absolute; margin-top:0px; margin-left:0px; width:100px; }
    #div2 { position:absolute; margin-top:0px; margin-left:101px; width:100px }

    given that your div1 and div2 are inside another div

  3. #3
    Quote Originally Posted by maddox22 View Post
    hindi ka nag-iisa ana bro. daghan na sad nangutana ana

    the usual solution is to use a list (<LI>) pero mag 'float:left' sad lagi ka.

    kung dili ka ganahan ana then you can try setting your divs at absolute positions.

    e.g.

    #div1 { position:absolute; margin-top:0px; margin-left:0px; width:100px; }
    #div2 { position:absolute; margin-top:0px; margin-left:101px; width:100px }

    given that your div1 and div2 are inside another div
    I stick gihapon with float, ako-a ra napangita-an ug paagi nga ang background div mo strech siya depende sa contents.

    thanks for the reply.

  4.    Advertisement

Similar Threads

 
  1. Replies: 21
    Last Post: 01-28-2012, 04:22 PM
  2. Replies: 4
    Last Post: 09-11-2011, 08:21 PM
  3. HELP! Youtube video halved horizontally
    By headset in forum Networking & Internet
    Replies: 4
    Last Post: 04-04-2011, 08:15 AM
  4. CSS Help - <div> tags trouble
    By personalmgt in forum Programming
    Replies: 4
    Last Post: 07-12-2010, 03:47 PM
  5. help!!! positive reinforcements in feeding
    By emmhai in forum Pet Discussions
    Replies: 19
    Last Post: 08-23-2009, 10:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top