i teraz z z pierwszego elementu (li) każdej listy chciałbym usunąć pointer (kropkę) oraz pogrubić tekst, jak to zrobić za pomocą first-child?
Jak dodaję takie coś do style.css:
ul:first-child { list-style-type: none; }
to nie działa i nie wiem czemu
ul:first-child { list-style-type: none; }
@import url('reset.css'); body { background-color: #E5ECF4; } a, a:link, a:active, a:visited, a:hover { color: #018AD8; font-family: Arial; font-size: 13px; text-decoration: none; font-weight: lighter; } a:hover { text-decoration: underline; } #mainDiv { margin-left: auto; margin-right: auto; width: 1200px; } #navigationBar { width: 100%; height: 35px; background-color: #B70002; } #navigationElements { margin-left: auto; margin-right: auto; width: 1080px; color: white; height: 100%; list-style-type: none; } #navigationElements li, #navigationElements li a, #navigationElements li a:link, #navigationElements li a:active, #navigationElements li a:visited, #navigationElements li a:hover { color: white; font-weight: bold; font-size: 14px; width: 135px; float: left; font-family: Arial; text-align: center; padding-top: 3px; } #navigationElements li a:hover { text-decoration: underline; } #top { margin-top: 10px; width: 1200px; height: 136px; background-color: red; } #newsDiv { width: 1152px; background-color: white; margin-top: 10px; padding-top: 56px; padding-bottom: 56px; padding-left:22px; padding-right: 22px; } .newsListDiv { width: 315px; height: 500px; margin: 7px 13px; border-style: solid; border-color: #C6C6C6; border-width: 1px; padding: 24px 20px; float: left; overflow: hidden; } #newsDiv ul { color: #909495; width: 100%; margin-top: 7px; } #newsDiv ul:first-child { list-style-type: none; } #newsDiv ul li { list-style-type: disc; margin-top: 5px; margin-bottom: 5px; clear: left; } ul li span { color: #018AD8; font-family: Arial; font-size: 13px; } ul li img { float: left; } .newsSource { background-image: url('images/titleBackground.jpg'); background-repeat: repeat-x; text-align: center; width: 100%; height: 23px; font-family: Arial; font-size: 15px; text-transform: uppercase; color: white; display: block; padding-top: 3px; } .newsSource a, .newsSource a:link, .newsSource a:visited, .newsSource a:hover, .newsSource a:active { font-family: Arial; font-size: 15px; text-transform: uppercase; color: white; } li:first-child a, li:first-child a:link, li:first-child a:hover, li:first-child a:visited, li:first-child a:active { font-weight: bold !important; } li:first-child { list-style-type: none !important; }