Two gridviews next to each other without a TABLE?

Discussion in 'ASP .Net' started by jc, Mar 19, 2008.

  1. jc

    jc Guest

    RE:Two gridviews next to each other without a TABLE?

    In another post I can't seem to find somebody suggested I use use
    <div> with style=float:right to place two divs next to each other and
    this works great. However for some reason I cannot make it work when
    the content of the Divs are gridview.

    Is there any reason?
     
    jc, Mar 19, 2008
    #1
    1. Advertisements

  2. jc

    Stan Guest

    On 19 Mar, 20:14, jc <> wrote:
    > RE:Two gridviews next to each other without a TABLE?
    >
    > In another post I can't seem to find somebody suggested I use use
    > <div> with style=float:right to place two divs next to each other and
    > this works great. However for some reason I cannot make it work when
    > the content of the Divs are gridview.
    >
    > Is there any reason?


    Hi

    Have you tried different browsers? Some do not handle positioning very
    well with div tags especially IE!
     
    Stan, Mar 20, 2008
    #2
    1. Advertisements

  3. Give tp the divs width. Something like this:
    <div style="float:left;width:49%;margin-right:1%">
    <asp:gridview width="100%" .. />
    </div>
    <div style="width:49%">
    <asp:gridview width="100%" .. />
    </div>

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net


    "jc" <> wrote in message
    news:...
    > RE:Two gridviews next to each other without a TABLE?
    >
    > In another post I can't seem to find somebody suggested I use use
    > <div> with style=float:right to place two divs next to each other and
    > this works great. However for some reason I cannot make it work when
    > the content of the Divs are gridview.
    >
    > Is there any reason?
     
    Eliyahu Goldin, Mar 20, 2008
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Ochoa
    Replies:
    5
    Views:
    590
  2. Replies:
    7
    Views:
    3,967
    John Currier
    Sep 4, 2005
  3. cppaddict
    Replies:
    4
    Views:
    644
    jeffc
    Oct 15, 2003
  4. Deniz Bahar
    Replies:
    2
    Views:
    712
    Andrey Tarasevich
    Mar 9, 2005
  5. Bart
    Replies:
    1
    Views:
    388
  6. Simon
    Replies:
    0
    Views:
    624
    Simon
    Aug 22, 2007
  7. Simon
    Replies:
    0
    Views:
    600
    Simon
    Sep 4, 2007
  8. Cristian
    Replies:
    3
    Views:
    2,513
Loading...