Table inside min-width Div
Last Post 09/17/2009 11:12 AM by Lee Sykes. 3 Replies.
Author Messages
Lillian
Nuke Active Member
Nuke Active Member
Posts:26


--
09/04/2009 4:20 PM
    First of all, I have problem with setting min-width on a div. it just wont take it. when i set it, the div just fills the whole screen.  What i'm tryiing to do is, I have a table inside div container.  I need the container to be at least 800px width.  but when my table is wider than 800px, i need the div to stretch with it. PLEASE HELP!!!
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    09/07/2009 3:14 PM
    Hello,

    Where are you trying to set the minimum width? Are you doing this in a content pane?

    Have you tried just setting width: rather than min-width: - quite often if you place a table inside a div and specify the width of the table it will force the div to the width of the table. - This may not necessarily be what you want, so perhaps provide further details, thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Lillian
    Nuke Active Member
    Nuke Active Member
    Posts:26


    --
    09/11/2009 11:49 AM
    yes its inside content pane. i'm setting the container div as min-width. and theres a table inside it.  I also tried setting div the regular width. but when the table is wider than the div width size, it sticks out of the div.  i need the div to strech with the table. how would I do this?
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    09/17/2009 11:12 AM
    I suspect you are always going to come across that problem if you are placing a table inside a div content pane and expecting the div content pane to stretch to the size of the table.

    Is it possible to set the table to a fixed width?

    Otherwise it may be safer to use a table for setting the width of the content pane rather than a div.
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---