Adding some CSS3 to my template
-
Hey, I was just trying to put some CSS3 code to my template. But i couldn’t find what tags I had to change. Can someone help me?
My theme is Catch Everest V1.1
My website is ” https://henriqueguimaraes.net/multimediaonline/ “
This is the code I think I would change:
/* =Menu ----------------------------------------------- */ #header-right .menu li { display: inline; margin: 0; } #header-right .menu ul { display: inline; } #header-right .menu a { border-left: 1px solid #e6e6e6; padding: 0 4px 0 8px; padding: 0 0.4rem 0 0.8rem; text-decoration: none; } #header-right .menu a:hover { color: #0088cc; } #header-right .menu li.current_page_item > a, #header-right .menu li.current-menu-item > a { color: #000; } #header-right .menu > li:first-child > a { padding-left: 0; border-left: none; } #header-menu { background-color: #ffffff; margin-bottom: 0; } #header-menu #access, #colophon #access-footer { clear: both; display: block; float: left; margin: 0 auto; width: 100%; } #header-menu ul.menu, #colophon #access-footer ul.menu { list-style: none; padding-left: 0; text-align: center; border-top: 1px solid #603388; border-bottom: 1px solid #603388; } #header-menu ul.menu li { display: inline-block; position: relative; text-align: left; } #header-menu ul.menu a, #colophon #access-footer ul.menu a { color: #000000; display: block; line-height: 45px; line-height: 4.5rem; padding: 0 20px; padding: 0 2rem; text-decoration: none; text-transform: uppercase; white-space: nowrap; } #header-menu ul.menu ul { -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2); -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2); box-shadow: 0 3px 3px rgba(0,0,0,0.2); display: none; float: left; margin: 0; position: absolute; top: 45px; top: 4.5rem; left: 0; list-style: none; width: 188px; z-index: 99999; } #header-menu ul.menu ul ul { left: 100%; top: 0; } #header-menu ul.menu ul a { background: #ffffff; color: #000000; font-size: 12px; font-size: 1.2rem; font-weight: 400; line-height: 23px; line-height: 2.3rem; height: auto; padding: 10px; width: 168px; } #header-menu ul.menu li:last-child, #header-menu ul.menu ul li { border:none; } #header-menu ul.menu li:hover > a, #header-menu ul.menu a:focus, #colophon #access-footer ul.menu a:hover, #colophon #access-footer ul.menu a:focus { border-bottom: 1px solid #603388; border-top: 1px solid #603388; } #header-menu ul.menu li:hover > ul { display: block; } #header-menu .menu .current-menu-item > a, #header-menu .menu .current-menu-ancestor > a, #header-menu .menu .current_page_item > a, #header-menu .menu .current_page_ancestor > a, #colophon .menu .current-menu-item a { border-top: 3px solid #673695; border-bottom: 3px solid #673695; } #access-secondary { background-color: #e6e6e6; clear: both; display: block; float: left; margin: 0 auto; width: 100%; } #access-secondary ul.menu { font-size: 13px; font-size: 1.3rem; } #access-secondary ul.menu li { border-right: 1px solid #dedede; } #access-secondary ul.menu a { color: #373737; line-height: 35px; line-height: 3.5rem; } #access-secondary ul.menu ul { list-style: none; top: 35px; top: 3.5rem; } #access-secondary ul.menu ul a { } #access-secondary ul.menu ul ul { top: 0; } #colophon #access-footer { margin-bottom: 0; } #colophon #access-footer ul.menu li { border-left: 1px solid #444; float: left; } #colophon #access-footer ul.menu ul { border-left: 1px solid #444; display: inline; float: left; list-style: none outside none; margin: 0; } #colophon #access-footer ul.menu a { display: inline; float: left; } #colophon #access-footer ul.menu li:first-child { border: none; } /* =Responsive Menu (Tinynav.js) -------------------------------------------------------------- */ .default-menu { display: none !important; } .sb-options li:last-child { display: none; } .tinynav { display: none; font-size: 16px; } .sb-holder { display: none; height: 40px; margin: 0 auto; position: relative; width: 100%; } .sb-selector { display: block; height: 40px; left: 0; line-height: 42px; outline: none; overflow: hidden; position: absolute; text-indent: 10px; top: 0; width: 100%; } .sb-selector:link, .sb-selector:visited, .sb-selector:hover { color: #fff; font-weight: bold; outline: none; text-decoration: none; text-shadow: 0 -1px 0 #000; } .sb-toggle { background: url(images/select-icons.png) 0 10px no-repeat; display: block; height: 40px; outline: none; position: absolute; right: 0; top: 0; width: 40px; } .sb-toggle-open { background: url(images/select-icons.png) 0 -45px no-repeat; } .sb-holder-disabled { background-color: #3c3c3c; border: 1px solid #515151; } .sb-options { background-color: #3a3d41; list-style: none; left: 0; margin: 0; padding: 0; position: absolute; top: 30px; width: 100%; z-index: 99; overflow-y: auto; } .sb-options li { padding: 0; } .sb-options a { border-bottom: 1px solid #666; display: block; font-size: 12px; outline: none; padding: 6px 4px;; text-indent: 4px; } .sb-options a:link, .sb-options a:visited { color: #eee; text-decoration: none; } .sb-options a:hover, .sb-options a:focus, .sb-options a.sb-focus { background-color: #2d2d2d; } .sb-options li.last a { border-bottom: none; } .sb-options .sb-disabled { border-bottom: dotted 1px #515151; color: #999; display: block; padding: 7px 0 7px 3px; } .sb-options .sb-group { border-bottom: dotted 1px #515151; color: #ebb52d; display: block; font-weight: 700; padding: 7px 0 7px 3px; } .sb-options .sb-sub { padding-left: 17px; }
What I want is to make on the menu “hover” something like this without messing up the entire menu:
https://www.w3schools.com/css3/tryit.asp?filename=trycss3_transition1Thx for the help
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘Adding some CSS3 to my template’ is closed to new replies.