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. Advertising

  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. Advertising

  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. Advertising

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. Deniz Bahar
    Replies:
    2
    Views:
    496
    Andrey Tarasevich
    Mar 9, 2005
  2. Bart
    Replies:
    1
    Views:
    325
  3. Simon
    Replies:
    0
    Views:
    548
    Simon
    Aug 22, 2007
  4. Simon
    Replies:
    0
    Views:
    518
    Simon
    Sep 4, 2007
  5. Cristian
    Replies:
    3
    Views:
    2,210
Loading...

Share This Page