January 8, 201412 yr Hello I am new to coding and I find it really hard to watch through long videos learning stuff I can some html and I feel like I always start over again.. but I have occurred a problem, you may know how to code or make this If you look to the right I need a menu like this, but I have totally no idea how to make it. Someone told me this, but still I want images like on the picture. Thank you for all help! You can use a UL element to create a list. Code: <ul><li>List Item One</li><li>List Item Two</li></ul>
January 8, 201412 yr have you used any CSS styling? <style> ul { width:300px; list-style:none; } ul li { padding: 10px 10px 10px 10px; float:left; width:100%; border-bottom:1px solid #f2f2f2; } ul li:hover { border-left:2px solid blue; cursor:pointer; } </style> <ul> <li>List Item One</li> <li>List Item Two</li> </ul> you can play around with it here http://scratchpad.io/parched-sound-2670 Edited January 8, 201412 yr by inlinedivblock
January 8, 201412 yr I'll also add - may be a little advanced you right now as somebody very new to this, but that kind of menu can - and should be done without images, you can use CSS to style the elements to give them the appearance in the image you posted. Properties like border-radius, box-shadow and many more can be used to change the appearance of elements. Css is better than images due to speed. a CSS alternative will keep http requests down along with less data to download.
January 8, 201412 yr Author I'll also add - may be a little advanced you right now as somebody very new to this, but that kind of menu can - and should be done without images, you can use CSS to style the elements to give them the appearance in the image you posted. Properties like border-radius, box-shadow and many more can be used to change the appearance of elements. Css is better than images due to speed. a CSS alternative will keep http requests down along with less data to download. have you used any CSS styling? <style> ul { width:300px; list-style:none; } ul li { padding: 10px 10px 10px 10px; float:left; width:100%; border-bottom:1px solid #f2f2f2; } ul li:hover { border-left:2px solid blue; cursor:pointer; } </style> <ul> <li>List Item One</li> <li>List Item Two</li> </ul> you can play around with it here http://scratchpad.io/parched-sound-2670 WOW!! How can I thank you enough? This is really awesome and solid high quality comment! Thank you very much! A comment like this gives me a really good first impression of this website! I will surely stay on here to learn! Thank you again!
January 8, 201412 yr Author I have one more question if you could answer, I am trying to make it when I click there comes text on the right like on the picture and when I click on another another next comes I understand if you can't answer Thank you in advance!
January 8, 201412 yr The fundamentals that you are looking for are well covered in this basic online tutorial for beginners - Codecademy. Have a work through a few of their tutorials, I am sure you will find them quite useful, but don't forget to check the notification settings to avoid loads of unwanted mail.
Create an account or sign in to comment