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
    Dec 2014
    Posts
    1
    Member #
    40949

    Exclamation Help with ul tags outside div tag !

    I have a parent div tag, inside which is a table tag. Inside the div, there is some ul with li tags which has some icons over it. The parent div is declared scroll as auto. The parent div tag is set to say, 400p x 400px. The table width and height may vary.So, obviously scroll bars can be seen. How do I set the ul with li tags which must be appearing always outside the parent div?

    Please HELP ! Thanks.

    xx.jpg

  2.  

  3. #2
    Senior Member sasha_bolcina's Avatar
    Join Date
    Sep 2014
    Location
    Serbia
    Posts
    274
    Member #
    40099
    Liked
    47 times
    Try with
    ul{
    display: inline-block;
    margin-left: 400px;
    }

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    That would work if there was only going to be one <ul>, and if the div inside the table is always 400x400px and the table has no border, margin, or padding.
    But if the div is in a table with a variable width, that won't work to keep the second <ul> outside the table.

    My first question is - why do you need a table? and tthe second would be why do you want scroll bars inside the document/

    If you really need a table, then I would use more divs - one to hold the table, the one inside the table, and one for the second <ul>. I'd give them percentages instead of specific px dimensions.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


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
  •  

Tags for this Thread

All times are GMT -6. The time now is 10:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com