Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About ike

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Can someone help me understand why the padding isn't applied equally to the top and bottom of my banners div? The top has the 50px padding but the bottom does not. However, when you resize the browser window then the padding seems to be applied equally. <style> /* -------------------- START BANNERS CSS STYLE-------------------- */ div.banners { padding: 50px 0px; margin: 0px 0px; background-color: #f60; } div.banners-third { width: 30%; margin-right: 5%; float: left; text-align: center; } div.banners-third-last { margin: 0px; } /*
  2. Anyway to stop the expanded dropdown from jumping to the top of the screen? On mobile devices as soon as you try to scroll the screen it jumps to the top. Desktop Internet browser if you shrink the browser for the responsive to kick in and then expand the dropdown then if you maximize the browser it jumps to the top.
  3. Thanks a bunch, as that is exactly what I was looking for. I know beggars shouldn’t be choosy but if the dropdown is expanded on a mobile device and you scroll the screen, Link 1 of the dropdown is displayed next to the Home link on the menu bar. If the sub dropdown is expanded, and you scroll the screen, Link 1 and the sub dropdown button is displayed next to the Home link on the menu bar. You can get a similar result if you just shrink your browser window expand one of the dropdowns and then maximize your browser window. The dropdowns stay expanded and can not be closed unless you shrink t
  4. Is there anyway to make this dropdown menu use onclick instead of hover on small screens. I'm creating a menubar with several dropdowns and a couple sub-dropdowns with-in them and as it is on small screes the menu is too hard to navigate with the hover. https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_responsive_navbar_dropdown Thanks!
  5. Not really sure what any of that means but I'll do a search on sessionStorage and see what I can come up with. Thanks!
  6. Is there any way to have a radio button be active by default on page refresh? I have two radio buttons that call up two different login scripts. Login script one for retail customers does not require a token to authenticate, where login script two for business customers has a token to authenticate. When script two is activated it provides a link to retrieve a lost or damaged token. The problem I’m running into is that once radio button two is checked and the page is refreshed radio button two stays checked. However, it is calling up login script one without the link to retrieve a lost
  7. I have a sticky navbar which works fine until I add an image to my image box which at that point the sticky doesn't kick in until you scroll past the image. Any ideas as to what could be the cause of this it's driving me crazy? At least it's a short trip for me! <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { margin: 0; font-size: 28px; font-family: Arial, Helvetica, sans-serif; } .header { background-color: #f1f1f1; padding: 30px; text-a
  8. I've got it working to some degree but not sure it is best practice. Just curious Is what I've done suitable? I added position: static; to the login div on screen resize and gave it enough top margin to move below the image div. It was overlapping the body-content div so I gave the body-content div enough top margin to move below the login div. Here is my new code. <style> *{ padding: 0px auto; margin: 0px auto; } img { max-width: 100%; height: auto; } div.image-box { position: relative; border: 1px solid black; wid
  9. I have a login script I want to place over an image which I believe I have done. However, I would like to move the login script div below the image div on small screens. I can accomplish this with separate divs using mobile-collapse but can seem to make it work with the div inside the other div. Any suggestions would be great! Thanks!! <!doctype html> <html> <head> <META content="IE=11.0000"> <META http-equiv="X-UA-Compatible"> <META charset="utf-8"> <META http-equiv="X-UA-Compatible" content="IE=edge,
  10. I could have sworn I tried that but must have mucked it up somehow as it working now along with the right arrow. Many thanks! I see most navigation menus are made up of unordered lists and list items. Are there benefits of creating it that way opposed to the div structure I used?
  11. I created a sub menu on one of my dropdowns which seems to be working. However, i'm struggling on how the get the Sub Menu Text aligned to the left. Currently it's centered and I'd like it to line up with the other links. Also, is there a way to have an arrow pointing to the right on the Sub Menu? <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <title></title>
  12. Your suggestion has things working properly now. Thank you very much! I hope I can understand things better someday, as the smallest changes can make such a dramatic impact. Forgot we are going to need a sub menu on one of the dropdowns. Any chance of creating a sub menu with in the current dropdown menu? Seems like I might have to switch to a different menu type using unordered list & li's to accomplish this which will probably blow everything apart.
  13. I finally got it working by giving the .topnav a fixed height and removing the overflow: hidden;. .topnav { background-color: #333; overflow: ; height: 48px; } However, now if you reduce the screen size when you click the menu icon the bottom three menu items do not have the dark background color.
  14. Thanks a bunch. I understand this change, /* The sticky class is added to the navbar with JS when it reaches its scroll position */ .sticky,.topnav.responsive.sticky { position: fixed; top: 0; width: 100%; } but would never have figured out the changes you made to the first script. The dropdowns still will not work once the navbar gets stuck unless you reduce the screen size so the responsive kicks in. I thought it was the overflow: hidden; on the .dropdown but I removed that and it still does not wo
  15. Thanks for the replay. I made the suggested changes and it kind of works. If reduce the page width and scroll all the way to the bottom the navbar moves to the top of the page however, when I click the menu icon, the menu disappears or jumps out of view now. If I reduce the width but do not scroll all the way to the bottom of the page and click on the menu icon the dropdown works.
  • Create New...