in Education by
I have a div and, inside it, an unordered list with several list items that serve as navigation menu items. The list items, when hovered over, turn a certain background color different from other items in the list. I wonder how I can make sure that the list items always completely fill the div horizontally, no matter what the zoom level. Currently, when I view the page at 100% zoom, the list items fill the navigation div completely (there is no empty space between the last list item and the right border of the div), but when I zoom out, an empty area appears to the right of the last list item. Ideally, I would like to do this using CSS. What property or properties in the CSS should I adjust to make sure that the div and the space taken up by the list items always shrink or expand at the same rate when I zoom in or out? I myself can't see the HTML code (I'm modifying a template), which also means that I can't set the width for each list item individually, but the CSS for the unordered list looks as follows: #navigation ul { width: 100%; resize: vertical; } #navigation li { float: left; position: relative; resize: vertical; } The resize:vertical and float:left were added by me as part of my efforts to make the unordered list always span the width of the div. As you can see, the unordered list's width is already set to 100%, and yet it does not fill the div except when the page is viewed at 100% zoom. If nothing else works, is there a way to make the div or the font of the menu items not be resized when the user zooms in or out on the page? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
ul li{ display:inline-block; margin-right:10px; }
  • Home
  • About
  • Contact
  • Impressum
Run code snippetExpand snippet

Related questions

0 votes
    I want to make a method that will populate the lst_List list with rows from various tables and fields. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I want to make a method that will populate the lst_List list with rows from various tables and fields. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    (iii) A chart is up dated automatically with the change in data. (iv) You can change the pattern of the data ... activated at a time. Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    (iii) A chart is up dated automatically with the change in data. (iv) You can change the pattern of the data ... activated at a time. Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    This is a sample (edited slightly, but you get the idea) of my XML file: Test 192.168.1.1 Test ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I have a view with a text field in it, but the text field is at the bottom. When I click the keyboard, it pops up ... to push the rest of the view up when a keyboard comes up?...
asked Mar 9, 2021 by JackTerrance
0 votes
    Can a chatbot be used by a restaurant to take customer orders and make menu items suggestions? A. Yes B. No...
asked Dec 23, 2022 in Technology by JackTerrance
0 votes
    How can we make a UITextField move up when the keyboard is present - on starting to edit?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    while ($row1 = mysql_fetch_array($event1)) { $event = $row1['post']; $timeposted = $row1['date']; ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    while ($row1 = mysql_fetch_array($event1)) { $event = $row1['post']; $timeposted = $row1['date']; ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    while ($row1 = mysql_fetch_array($event1)) { $event = $row1['post']; $timeposted = $row1['date']; ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
...