October 27, 201511 yr How do I make the side borders 1 unit size instead of having the left/right borders combined in a drop down menu etc? It's just the hover part I can't figure out.. I couldn't combine Last-Child with Hover.. and Last-Of-Type I think was the same.. https://www.trevorsiu.com/frame.html Also not that I'm sure I wanna.. but.. how do I make the cells the size of the word instead of all the same width?
November 4, 201511 yr How do I make the side borders 1 unit size instead of having the left/right borders combined in a drop down menu etc? It's just the hover part I can't figure out.. I couldn't combine Last-Child with Hover.. and Last-Of-Type I think was the same.. https://www.trevorsiu.com/frame.html Also not that I'm sure I wanna.. but.. how do I make the cells the size of the word instead of all the same width? Can you explain in clearer detail for the first issue? Remove width from the li and add padding: 0 20px; to the label.
November 5, 201511 yr Author If the border size is 1px each left and right is touching and becoming 2px apart from obviously the outer ones.. How do I.. you know.. give all the right borders 0px except for the last one..
November 6, 201511 yr If the border size is 1px each left and right is touching and becoming 2px apart from obviously the outer ones.. How do I.. you know.. give all the right borders 0px except for the last one.. set border-right to them all and then .element:last-child{border-right:0;}
November 8, 201511 yr Author I got as far as this: https://www.trevorsiu.com/frametest.html Just that last bit..
November 8, 201511 yr The problem is the positioning. It's expanding the container (parent <li>). Change #menu ul ul to this: #menu ul ul { display: none; position: absolute; width: 100%; left: 0px; } and add this: ul li { position:relative; } Then take a look at the results. Edited November 8, 201511 yr by EddieT
November 8, 201511 yr Also not that I'm sure I wanna.. but.. how do I make the cells the size of the word instead of all the same width? I agree, not sure why you would want to do that, but in your css you have: #menu>ul>li { float: left; width: 90px; } Remove the width: 90px and the list items will collapse in size. If you do this, maybe add padding: 0 10px; to #menu label - this makes it look better.
November 8, 201511 yr Author The top right isn't noticeable in 1px after I added all that.. and I was gonna ask the last thing.. what's the logic in lining up the sides.. I figure if I change it to reverse.. It'll just be the same but sideways reverse..
November 9, 201511 yr I'm sorry buddy but I'm not sure I understand the question. Maybe try remaking in in a Fiddle so I can have a play with it?
November 11, 201511 yr I'm sorry buddy but I'm not sure I understand the question. Maybe try remaking in in a Fiddle so I can have a play with it? Im with Eddie... that makes no sense.
November 13, 201511 yr Author I added the code and it fixed it.. well almost.. if I increase the border size to 3px.. you can see the bit on the end.. But with the regular 1px border it looked ok.. https://www.trevorsiu.com/frametest.html After that how do I line up the lines on the boxes? I'm always using the left borders for the right.. but the drop down boxes is out of line.
November 26, 201510 yr I added the code and it fixed it.. well almost.. if I increase the border size to 3px.. you can see the bit on the end.. But with the regular 1px border it looked ok.. https://www.trevorsiu.com/frametest.html After that how do I line up the lines on the boxes? I'm always using the left borders for the right.. but the drop down boxes is out of line. You have wrote you're html wrong. <li> <label>Music</label> <ul> <li><a href="https://www.trevorsiu.com">Music</a> </li> </ul> </li> Should be: <li> <a href='#'>Music</a> <ul> <li><a href='#'>Sub nav</a></li> </ul> </li> Edited November 26, 201510 yr by Matthew Claffey
December 2, 201510 yr In the href part obviously? I thought you meant link to # literally.. href="mailto:emailaddress"
Create an account or sign in to comment