css - Border-top works inside first-child, but not border-bottom -
i trying learn of css, i'm having little trouble.
in project have 1 searchbar "ui autocomplete", works, i'm trying edit style of "returns box" , having troubles.
now autocomplete result box doesn't show border-bottom, , i'm trying solve this. when type border-bottom: 10px inside last-child don't have success, when type border-top: 10px inside first-child have!
css:
.ui-corner-all{ background-color: #fff; outline: none; margin: 0px; padding: 0px; border-radius: 0px; -moz-border-radius: 0px; border-bottom: 1px solid #fff; border-left: 1px solid rgb(223, 223, 223); border-right: 1px solid rgb(223, 223, 223); } ul.ui-autocomplete{ border-top: 0px solid rgb(223, 223, 223) !important; border-radius: 0px; -moz-border-radius: 0px; } ul.ui-autocomplete li:first-child{ /* border-top: 10px solid rgb(223, 223, 223); */ } ul.ui-autocomplete li:last-child{ border-bottom: 10px solid rgb(223, 223, 223); } .ui-menu .ui-menu-item { margin:0; padding: 0; float: left; clear: left; width: 100%; height: 30px; } .ui-menu .ui-menu-item { text-decoration:none; display:block; border: 0px; height: 32px; } .ui-state-focus, .ui-menu .ui-menu-item a:hover, .ui-menu .ui-menu-item a.ui-state-hover, .ui-menu .ui-menu-item a.ui-state-active { background: rgb(223, 223, 223); background-image: none !important; -moz-border-radius: 0px; border-radius: 0px; border-left: 1px solid rgb(223, 223, 223); border-right: 1px solid rgb(223, 223, 223); zoom: 0%; outline: none; margin: 0px; padding: 0px; display: block; line-height: 1.0; font-weight: normal; font-family: verdana,arial,sans-serif; font-size: 1.1em; min-height: 0; color: #000; }
html:
<form action="" method="post" id="search_bar"> <input type="search" name="search" class="giant-input" autofocus list="hashtags" size="60" /> </form>
am doing wrong? can solve problem?
i found solution!
i did proof exhaustion in code , discover root of problem. it's (i don't know why) padding: 0px problem.
my original code:
.ui-corner-all{ background-color: #fff; outline: none; margin: 0px; padding: 0px; border-radius: 0px; -moz-border-radius: 0px; border-bottom: 1px solid #fff; border-left: 1px solid rgb(223, 223, 223); border-right: 1px solid rgb(223, 223, 223); }
my new code(working!):
.ui-corner-all{ background-color: #fff; outline: none; margin: 0px; // padding: 0px; -- here's problem border-radius: 0px; -moz-border-radius: 0px; border-bottom: 1px solid #fff; border-left: 1px solid rgb(223, 223, 223); border-right: 1px solid rgb(223, 223, 223); }
thanks friends tried help! :)
Comments
Post a Comment