what is this bullet point <li> not showing up with circles? - html
I'm trying to show some bullet point list circles on my webpage, but it doesn't seem to show, and I tried using firebug but I can't find what's wrong, I went through my whole css file, and I don't see where the problem is, i want the list to be vertical with circles!
Please can you help me, here is the code :
/* Browser resets. */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, dialog, figure, footer, header,
hgroup, nav, section {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 1em;
font-family: inherit;
vertical-align: baseline;
line-height: 1.5em;
}
#fancy_ajax .note{ cursor:default; }
/* Three styles for the notes: */
.yellow{
background-color:#FDFB8C;
border:1px solid #DEDC65;
}
.blue{
background-color:#A6E3FC;
border:1px solid #75C5E7;
}
.green{
background-color:#A5F88B;
border:1px solid #98E775;
}
/* Each note has a data span, which holds its ID */
span.data{ display:none; }
/* Green button class: */
a.green-button,a.green-button:visited{
color:black;
display:block;
font-size:10px;
font-weight:bold;
height:15px;
padding:6px 5px 4px;
text-align:center;
width:60px;
text-shadow:1px 1px 1px #DDDDDD;
background:url(../img/button_green.png) no-repeat left top;
}
a.green-button:hover{
text-decoration:none;
background-position:left bottom;
}
.author{
/* The author name on the note: */
bottom:10px;
color:#666666;
font-family:Arial,Verdana,sans-serif;
font-size:12px;
position:absolute;
right:10px;
}
#main{
/* Contains all the notes and limits their movement: */
margin:0 auto;
position:relative;
width:980px;
height:500px;
z-index:10;
background:url(img/add_a_note_help.gif) no-repeat left top;
}
h3.popupTitle{
border-bottom:1px solid #DDDDDD;
color:#666666;
font-size:24px;
font-weight:normal;
padding:0 0 5px;
}
#noteData{
/* The input form in the pop-up: */
height:200px;
margin:0px 0 0 0px;
width:350px;
}
.note-form label{
display:block;
font-size:10px;
font-weight:bold;
letter-spacing:1px;
text-transform:uppercase;
padding-bottom:3px;
}
.note-form textarea, .note-form input[type=text]{
background-color:#FCFCFC;
border:1px solid #AAAAAA;
font-family:Arial,Verdana,sans-serif;
font-size:19px;
font-weight: bold;
height:60px;
padding:5px;
width:300px;
margin-bottom:0px;
}
.note-form input[type=text]{ height:auto; }
.color{
/* The color swatches in the form: */
cursor:pointer;
float:left;
height:10px;
margin:0 5px 0 0;
width:10px;
}
#note-submit{ margin:20px auto; }
body {
height:100%;
background-color: white;
font-size: 14px;
color: #333333;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* custom selection colors */
::-moz-selection {
color: #fff;
color: rgba(255,255,255,.85);
background: #ea4c88;
}
::selection {
color: #fff;
color: rgba(255,255,255,.85);
background: #ea4c88;
}
/* Links */
a {
text-decoration: none;
color: #19558D;
font-size: inherit;
}
a:hover {
text-decoration: underline;
}
a:visited {
text-decoration: none;
background-color: inherit;
color: #336699;
}
a img {
border: none;
}
/* Input fields + label */
input, textarea {
border: 1px solid #999999;
padding: 5px;
}
label {
float: left;
margin-right: 10px;
margin-top: 10px;
margin-bottom: 0pxpx;
width: 120px;
font-size: 22px;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
#error {
font-size: 14px;
}
/* Lists */
li {
font-size: 14px;
margin-left: 10px;
list-style-type: circle;
display:inline;
}
li a {
margin-left: inherit;
}
#like_text {
float: left;
color: #0099CC;
cursor: pointer;
font-size: inherit;
}
.like_list_element {
width: 681px;
float: left;
padding-top: 15px;
margin-left: 0px;
height: 35px;
border-bottom: 1px solid #999999;
}
.like_list_element:hover {
width: 681px;
float: left;
padding-top: 15px;
margin-left: 0px;
height: 35px;
border-bottom: 1px solid #999999;
background-color: #EDEDED;
}
.micro_avatar {
float: left;
width: 30px;
height: 30px;
margin-right: 15px;
margin-top: -7px;
padding: 2px;
background-color: #ffffff;
-moz-box-shadow: 2px 2px 4px #D1D1D1;
-webkit-box-shadow: 2px 2px 4px #D1D1D1;
box-shadow: 2px 2px 4px #D1D1D1;
-moz-border-radius: 2px;
border-radius: 2px;
}
/* "Super" headline */
h1 {
font-weight: bold;
font-style: italic;
font-size: 38px;
color: #666666;
font-family: Georgia, "Times new roman", serif;
}
/* "Medium (bold)" headline */
h2 {
font-size: 20px;
font-weight: bolder;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* Normal headline (used on profile page) */
.normal_headline {
font-size: 22px;
float: left;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* "Standard" headline */
h3 {
font-size: 15px;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}
/* page structure */
/* Container - main content goes here */
#container {
min-height: 100%;
height:100%;
width: 897px;
margin-bottom: 30px;
margin: 0 auto;
}
/* Left (main) content */
#left_content {
float: left;
width: 485px;
font-size: 1em;
padding-left: -15px;
}
ul.statuses{
margin:10px 0;
}
ul.statuses li {
position:relative;
padding:15px 15px 15px 10px;
list-style:none;
font-size:12px;
}
div.tweetTxt{
float:left;
width:400px;
overflow:hidden;
}
ul.statuses a img.avatar{
float:left;
margin-right:10px;
border:1px solid #446600;
}
div.date{
line-height:18px;
font-size:10px;
color:#999999;
}
.question_link{
float:left;
font-weight: bold;
margin-left:40px;
color:blue;
}
#answerText {
float:left;
width:480px;
margin-left:40px;
margin-bottom: 5px;
}
#answerText ul{
margin-left:40px;
}
#answerText li {
list-style-type: circle;
font-size:30px;
}
.answerActions {
float:left;
margin-left:40px;
font-size:9px;
}
.thanks{
font-weight:bold;
}
.content{
float:left;
}
/* Used for seperating content eg. Timeline && photos */
.left_content_seperator {
width: 485px;
float: left;
border-bottom: 1px solid #999999;
margin-top: 15px;
margin-bottom: 30px;
height: auto;
}
/* Used in eg. postphoto.php */
.big_content_seperator {
width: 897px;
float: left;
border-bottom: 1px solid #999999;
margin-bottom: 30px;
}
/* Right side content */
.right_content {
float: right;
width: 200px;
font-size: 14px;
margin-right:80px;
}
/* Used for seperating content eg. Timeline && photos */
.right_content_seperator {
width: 200px;
float: right;
margin-top: 33px;
margin-bottom: 15px;
}
.right_content_seperator_home {
width: 200px;
float: right;
margin-top: 25px;
margin-bottom: 15px;
}
/* For footer + header (outside the main container) */
.small_container {
margin: 0 auto;
width: 900px;
}
/* The bar on the top of the page */
.top_bar {
width: 100%;
height: 50px;
margin-bottom: 30px;
background:none repeat scroll 0 0 black;
}
#search {
width: 502px;
padding: 10px;
height:20px;
margin: 10px 0px 0px -30px;
background-color:#505759;
float:left
}
.question_box{
background: none repeat scroll 0 0 #FFFFFF;
border-color: #CCCCCC #999999 #999999 #CCCCCC;
border-style: solid;
border-width: 1px;
color: #000000;
font: 16px arial,sans-serif;
margin: -5px 0px 0px -5px;
padding: 5px 8px 0px 6px;
width:380px;
height:25px
}
input.blur {
color: #999;
}
#search a {
color: #E5E5E5;
text-decoration: none;
font-weight: bold;
}
#search a:hover {
text-decoration: underline;
}
/* Logotype container */
.logotype {
background-color:#671E1E;
font-size: 20px;
float: left;
color:white;
padding:10px;
margin: 10px 30px 0px 0px;
}
/* The menu on the top of the page */
.top_menu {
float: right;
text-align: right;
background-color: inherit;
color: #ffffff;
margin: 15px 0px 0px 0px;
}
.top_menu a {
color: #E5E5E5;
text-decoration: none;
}
.top_menu a:hover {
text-decoration: underline;
color: inherit;
}
/* Main content + form container on the front page */
.text_box {
margin: 0 auto;
margin-top: 70px;
text-align: center;
width: 590px;
}
/* Box for the iPhone image on the front page */
.iphone_promo {
margin: 0 auto;
margin-top: 70px;
margin-bottom: 30px;
text-align: center;
width: 590px;
}
/* Red arrow next to the iPhone picture */
.arrow {
margin: 0 auto;
margin-left: 210px;
margin-bottom: -145px;
}
/* Typography */
.small_copy {
font-size: 12px;
}
#menu_list ul{
}
#menu_list li{
}
.not_selected {
-moz-border-radius: 5px 5px 5px 5px;
background-image: url("http://d1vgw4v7ja2ido.cloudfront.net/-9dfe92083011731d.gif");
background-position: left center;
background-repeat: no-repeat;
clear: both;
display: block;
font-weight: bold;
padding: 3px 5px 3px 10px;
color: #444444;
cursor: default;
}
.not_selected:hover{
background-color:lightblue;
}
.selected{
-moz-border-radius: 5px 5px 5px 5px;
background-image: url("http://d1vgw4v7ja2ido.cloudfront.net/-9dfe92083011731d.gif");
background-position: left center;
background-repeat: no-repeat;
clear: both;
display: block;
font-weight: bold;
padding: 3px 5px 3px 10px;
background-color: #E0E0E0;
color: #444444;
cursor: default;
}
#menu_list li{
margin-left: inherit;
}
.right_seperator {
width: 200px;
float: left;
border-bottom: 1px dotted #999999;
margin-top: 15px;
margin-bottom: 10px;
height: auto;
}
.light_gray_serif {
font-family: Georgia, "Times new roman", serif;
font-size: inherit;
color: #999999;
font-size: 14px;
}
/* Forms */
#email_form {
width: 285px;
height: 40px;
font-size: 22px;
margin-right: -1px;
outline: none;
font-weight: bold;
color: #999999;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: left;
}
#submit_button {
width: 295px;
height: 52px;
font-size: 22px;
font-weight: bold;
margin-left: -1px;
cursor: pointer;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
border: 1px solid #F9AA33;
float: right;
}
#username_form {
width: 448px;
height: 40px;
font-size: 22px;
margin-bottom: 15px;
outline: none;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: right;
}
#password_form {
width: 448px;
height: 40px;
font-size: 22px;
margin-bottom: 15px;
outline: none;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: right;
}
.standard_big_form {
width: 448px;
height: 40px;
font-size: 22px;
margin-bottom: 15px;
outline: none;
font-weight: bold;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
float: right;
}
/* Big login button */
#login_button {
width: auto;
padding-left: 20px;
padding-right: 20px;
height: 52px;
font-size: 22px;
font-weight: bold;
margin-left: -1px;
cursor: pointer;
color: inherit;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
border: 1px solid #F9AA33;
float: right;
}
#login_button:active {
position: relative;
top: 1px;
}
/* Standard buttons */
.big_button {
width: auto;
padding-left: 20px;
padding-right: 20px;
height: 52px;
font-size: 22px;
font-weight: bold;
cursor: pointer;
color: #333333;
font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
border: 1px solid #F9AA33;
float: right;
}
.big_button:active {
position: relative;
top: 1px;
}
.profile_name_container {
width: auto;
}
.follow_container {
float: left;
width: auto;
margin-top: 7px;
margin-left: 15px;
}
.follow_button {
margin-left: 0px;
text-align: justify;
color: #0099CC;
padding-left: 20px;
padding-right: 4px;
padding-top: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
font-size: 14px;
background: url(../images/follow-icon.png) no-repeat 4px 6px;
}
.follow_button:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background-image: url(../images/follow-icon.png) no-repeat 4px 6px;
}
.unfollow_button {
margin-left: 0px;
text-align: justify;
color: #0099CC;
padding-left: 20px;
padding-right: 4px;
padding-top: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
font-size: 14px;
background: url(../images/unfollow-icon.png) no-repeat 4px 6px;
}
.unfollow_button:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background-image: url(../images/unfollow-icon.png) no-repeat 4px 6px;
}
.push_footer {
margin-bottom: 200px;
}
/* Footer (container) of the page */
.footer {
float: left;
margin-top: 30px;
padding-bottom: 15px;
width: 897px;
height: 49px;
border-top: 1px solid #999999;
}
/* "Photoblogging through events." text. */
.footer_info {
font-size: 14px;
float: left;
margin-top: 15px;
}
/* The link to 'Support & Feature requests' */
.footer_link {
font-size: 14px;
float: right;
margin-top: 15px;
}
/*** Colors ***/
/* Blue gradient (css gradients, #336699 is used for IE and older browsers) */
.blue_gradient {
background: #336699;
background: -webkit-gradient(linear, left top, left bottom, from(#0099CC), to(#336699));
background: -moz-linear-gradient(top, #0099CC, #336699);
}
/* Yellow gradient (for button) #FBAA33 = orange */
.yellow_gradient {
background: #FBAA33;
background: -webkit-gradient(linear, left top, left bottom, from(#FBF16E), to(#FBAA33));
background: -moz-linear-gradient(top, #FBF16E, #FBAA33);
}
.yellow_gradient:hover {
background: #F6D05A;
}
/* Image design */
.photo {
float: left;
min-width: 200px;
min-height: 200px;
padding: 5px;
margin-right: 15px;
margin-bottom: 15px;
background-color: #ffffff;
border: 1px solid #EAEAEA;
-moz-box-shadow: 4px 4px 10px #D1D1D1;
-webkit-box-shadow: 4px 4px 10px #D1D1D1;
box-shadow: 4px 4px 10px #D1D1D1;
}
.photo_thumbnail:hover {
filter:alpha(opacity=60);
-moz-opacity:0.6;
-khtml-opacity: 0.6;
opacity: 0.6;
}
.big_photo_container {
text-align: center;
width: 666px;
margin-bottom: 15px;
}
.event_name {
height: 20px;
margin-right: 5px;
width: 169px;
float: left;
}
.trash_can {
height: 17px;
width: 14px;
-moz-border-radius: 5px;
border-radius: 5px;
padding-top: 3px;
padding-left: 2px;
float: right;
}
.trash_can:hover {
cursor: pointer;
margin: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
}
/* Image design */
.big_photo {
margin-top: 15px;
max-width: 656px;
padding: 5px;
background-color: #ffffff;
border: 1px solid #EAEAEA;
-moz-box-shadow: 4px 4px 10px #D1D1D1;
-webkit-box-shadow: 4px 4px 10px #D1D1D1;
box-shadow: 4px 4px 10px #D1D1D1;
}
.profile_photo {
float: left;
width: 50px;
height: 50px;
margin-right: 15px;
margin-bottom: 15px;
padding: 5px;
background-color: #ffffff;
-moz-box-shadow: 4px 4px 10px #D1D1D1;
-webkit-box-shadow: 4px 4px 10px #D1D1D1;
box-shadow: 4px 4px 10px #D1D1D1;
-moz-border-radius: 5px;
border-radius: 5px;
}
.profile {
padding-top: 15px;
}
/* Heart sign */
.fav {
margin-left: 0px;
color: #0099CC;
padding-left: 20px;
padding-right: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
background: url(../images/heart-icons.png) no-repeat 4px 4px;
}
.fav:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background: url(../images/heart-icons.png) no-repeat 4px -13px #EDEDED;
}
.highlight {
margin-left: 0px;
color: #0099CC;
cursor: pointer;
padding-left: 20px;
padding-right: 4px;
padding-bottom: 4px;
-moz-border-radius: 5px;
border-radius: 5px;
background: url(../images/heart-icons.png) no-repeat 4px -13px;
}
.highlight:hover {
cursor: pointer;
margin-left: -1px;
margin-right: -1px;
background-color: #EDEDED;
border: 1px solid #999999;
background: url(../images/heart-icons.png) no-repeat 4px 4px #EDEDED;
}
/* Heart sign */
.likes {
font-size: inherit;
}
/* Views */
.views {
padding-left: 20px;
float: right;
}
/* Costum */
/* Removes underlines for eg. buttons */
.no_underline:hover {
text-decoration: none;
}
/* Margins */
.small_margin_top {
margin-top: 15px;
}
.negative_margin_top {
margin-top: -4px;
}
.custom_margin_top {
margin-top: 48px;
}
.no_margin_left {
margin-left: 0px;
}
.no_margin_top {
margin-top: 0px;
}
/* Paddings */
.no_padding_top {
padding-top: 0px;
}
.normal_font_weight {
font-weight: normal;
}
.photo_label {
margin-right: auto;
padding-left: 6px;
text-align: left;
}
/* button basics */
a.minibutton {
display:inline-block;
height:23px;
padding:0 0 0 3px;
font-size:11px;
font-weight:bold;
color:#333;
text-shadow:1px 1px 0 #fff;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 0 0 no-repeat;
white-space:nowrap;
margin-right:4px;
border:none;
overflow:visible;
cursor:pointer;
text-decoration:none;
}
a.minibutton>span {
display:block;
height:23px;
padding:0 10px 0 8px;
line-height:23px;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 100% 0 no-repeat;
}
a.minibutton:hover, a.minibutton:focus {
color:#fff;
text-decoration:none;
text-shadow:-1px -1px 0 rgba(0,0,0,0.3);
background-position:0 -30px;
}
a.minibutton:hover>span, a.minibutton:focus>span {background-position:100% -30px;}
a.minibutton.mousedown{background-position:0 -60px; }
a.minibutton.mousedown>span{background-position:100% -60px; }
/* answer button */
a.answer {
display:inline-block;
height:23px;
padding:0 0 0 3px;
font-size:18px;
font-weight:bold;
color:#333;
text-shadow:1px 1px 0 #fff;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 0 0 no-repeat;
white-space:nowrap;
margin-right:4px;
border:none;
overflow:visible;
cursor:pointer;
text-decoration:none;
}
a.answer>span {
display:block;
height:23px;
padding:0 10px 0 8px;
line-height:23px;
background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 100% 0 no-repeat;
}
a.answer:hover, a.answer:focus {
color:#fff;
text-decoration:none;
text-shadow:-1px -1px 0 rgba(0,0,0,0.3);
background-position:0 -30px;
}
a.answer:hover>span, a.answer:focus>span {background-position:100% -30px;}
a.answer.mousedown{background-position:0 -60px; }
a.answer.mousedown>span{background-position:100% -60px; }
/* with icon */
a.btn-download .icon {
float:left;
margin-left:-4px;
width:18px;
height:22px;
background:url(http://github.com/images/modules/buttons/minibutton_icons.png?v20100306) 0 0 no-repeat;
}
a.btn-download .icon {background-position:-20px 0;}
a.btn-download:hover .icon, a.btn-download:focus .icon {background-position:-20px -25px;}
#profile_pic{
padding:5px;
border:1px #AAAAAA solid;
float:left;
}
ul.stats{
width:auto;
float:left;
display:inline;
margin: 20px 0px 0px 0px;
}
ul.stats li{
display:inline-block;
text-align:left;
}
.stats_number{
font-weight:bold;
font-size:10px;
}
.stats_text{
font-size:9px;
color:#505759;
}
ul.followingBar{
width:auto;
float:left;
margin: 0px 0px 0px 0px;
}
.watchingTopics{
float:left
}
ul.followingBar li{
display:block;
margin: 10px 0 0 0 ;
border-bottom:1px #999999 solid;
}
.topicFollow{
padding-bottom:10px;
font-weight:bold;
float:left;
}
.related_questions{
padding-bottom:10px;
font-weight:bold;
}
.panel
{
margin-left:50px; margin-right:50px; margin-bottom:5px; background-color:#D3E7F5; padding:6px; width:400px;
display:none; float:left;
}
.load_comment
{
margin-left:50px; margin-right:50px; margin-bottom:5px; background-color:#D3E7F5; height:auto; padding:6px; width:400px; font-size:12px;
float:left;
}
.flash_load
{
margin-left:50px; margin-right:50px; margin-bottom:5px;height:20px; padding:6px; width:400px;
display:none; }
.loadplace{
margin-top:70px;
}
<ul class="statuses">
<li>
<div id="answerText">
<ul>
<li>google</li>
<li>yahoo</li>
<li>quora</li>
</ul>
</div>
</li>
</ul>
li only gets its list-style-related styles applied if it has display: list-item
Your style for <li> is wrong:
li {
font-size: 14px;
margin-left: 10px;
list-style-type: circle;
display: inline;
}
should be
li {
font-size: 14px;
margin-left: 10px;
list-style-type: circle;
}
Try ensuring there are no:
list-style-type: none;
in your css file.
You attributed display:inline; to the LI tag, which explains why they're showing up horizontally instead of vertical. Get rid of that attribute.
I found that having overflow-x: hidden; (which I had applied to *) was hiding my bullets.
list not display bullet points
list-style-type:none;
Hey , you may have a problem in selector for example we have this code for list
some text
soke text
so our css code become like this
#ls{ list-style-type: circle;}
select with id value if you have multiple list .
My issue was caused by:
::marker {
content: none;
}
I was able to resolve by updating the CSS for my element to include:
li::marker {
content: initial;
}
Related
CSS Override Issue with Stylesheet
I am a newbie at this so please excuse me if this doesn't make sense. In the #topbar2 section of this CSS Style-sheet I want the image NAFF_webtracker_logo.gif to appear. I believe I need to override just this section of the document since this is inherting from defaultstyle.css. This is in an application where I cannot edit defaultstylesheet.css. Is there a way I can override just this section to get my logo to appear? My coding seems correct but the image does not display. Any help is appreciated. Colin /* This file inherits all the styles from DefaultStyle.css Please make sure that the following import link is present if you want to inherit default styles. Any changes in fonts, colours, layout, etc. can be done via overriding CSS style elements after the import statement. Good CSS guide is located at http://www.htmlhelp.com/reference/css/ */ #import url(DefaultStyle.css); /* put your changes below this comment */ body { background-image: url(images/BG.gif); background-color: none; background-position: left top; background-repeat: no-repeat; color: #666666; padding: 0; margin: 0; font-size: 11px; } #OuterContentPane { padding: 15px 30px 20px 30px; background: none; border-left: 0px solid; border-left-color: #ffffff; border-right: 0px solid; border-right-color: #ffffff; } #pagehead { height: 204px; border-bottom: 0px solid #000000; background: #fff !important; } #topbar1 { color: #ffffff; /*background: none url(images/TopR.gif) no-repeat top left;*/ height: 204px; } #topbar2 { color: #ffffff; background: url(images/NAFF_webtracker_logo.gif) no-repeat top left; height: 204px; } .loginBox { border: 1px solid #dfdfdf; background: #ddedf5 url(images/Boxag.gif) repeat-x top left; color: #666666; padding: 10px 10px 10px 10px; width: 170px; } .loginBox input[type="text"], .loginBox input[type="password"] { width: 169px; } .loginBox a, .loginBox a:visited { color: #666666; } .loginBox a:hover { color: #000000; } .LoginInstruction { position: absolute; border: 1px solid #dfdfdf; background: url(images/BoxBg.gif) repeat-x top left; color: #666666; padding: 15px; left: 264px; top: 220px; right: 16px; height: 322px; } #LoginStatusString { text-align: right; color: #00A4E4; background: none; top: 113px; right: 0px; } #menu { text-decoration: none; font-weight: normal; background: none; text-align: center; font-size: 9pt; left: 231px; top: 149px; font-variant: normal; line-height: 26px; /*text-transform: uppercase;*/ } #menu li { width: 124px; height: 26px; color: #00a4e4; text-decoration: none; background: url(images/MButtH.gif) no-repeat top left; border: 0px solid; } #menu a, #menu a:visited { color: #005596; background: url(images/MButt.gif) no-repeat top left; text-decoration: none; display: inline-block; } #menu a:hover { color: #00a4e4; text-decoration: none; background: url(images/MButtH.gif) no-repeat top left; } .DetailsTable { padding: 0px; font-size: 11px; } .DetailsHeader { color: #005596; font-size: 12px; vertical-align: middle; line-height: 24px; } .DetailsHeader td { background-image: url(images/MButt.gif); background-repeat: repeat; background-position: top left; } .DetailsHeader a { color: #005596; font-weight: Normal; } .DetailsHeader a:hover { color: #000000; } a, a:visited { color: #666666; background: inherit; } a:hover { color: #000000; background: inherit; } select, input { font-size: 11px; } .ContentSection { padding-left: 0px; margin-top: 10px; padding-bottom: 0px; background: none; } .DetailsCell { color: #666666; background: none; } .DetailsAlternatingCell { color: #666666; background: #ebf9fe; } .TimeLineLegend { display: inline-block; font-weight: bold; background: none; color: #000000; text-align: center; padding: 5px 5px 5px 5px; border: solid 1px gray; } .TimeLineOverdue { background: #ffb6c1; color: #000000; white-space: nowrap; text-align: center; } .TimeLinePending { background: #FFFF00; color: #000000; white-space: nowrap; text-align: center; } .TimeLineCompleted { background: #98fb98; color: #000000; white-space: nowrap; text-align: center; } .TimeLineCompletedLate { background: #ffcc99; color: #000000; white-space: nowrap; text-align: center } .TimeLineEstimate { font-style: italic; color: #000000; background: inherit; white-space: nowrap; text-align: center; } .Button.FilterStripGroup_none { background-color: #ffffff; } #pagefooter { text-align: left; padding-top: 8px; border-top: 0px solid #000000; border-bottom: 0px solid #000000; margin-left: 30px; margin-right: 30px; height: 30px; color: #666666; font-size: 9px; padding-left: 24px; background: #dfdfe0; } #PageFooter a, #PageFooter a:visited { color: #666666; font-size: 10px; } #PageFooter a:hover { color: #000000; font-size: 10px; } #LanguageSelection { position:absolute; right: 10px; } html{ overflow-x:hidden; } #OuterContentPane{ background-image: url('Images/Rectangle2.jpg'); background-size: cover; padding: 65px 30px 20px 30px !important; } #topbar1{ background-size: cover; background-image:url('Images/header.jpg'); background-position: -50px -45px; background-repeat: no-repeat; } #topbar2{ display: none; } #loginBox, #QuickViewDetails{ margin: 0 auto; min-width: 250px; max-width: 440px max-width:100%; background-color: #fff; padding: 20px 40px } #OuterContentPane select, #OuterContentPane input{ max-width: 300px; padding: 5px 6px; } .loginBox input[type="text"], .loginBox input[type="password"]{ width: 100% !important; padding: 5px; margin-bottom: 15px; padding: 5px 6px; background: #fff; } #SigninBtn, #FindBtn{ padding: 5px 19px; border-radius: 0px; background-color: #BF4646; color: #fff; margin-bottom: 20px; border: none; cursor:pointer; -webkit-transition: background-color .8s; /* Safari */ transition: background-color .8s; } #SigninBtn:hover, #FindBtn:hover{ background-color:#09517B; -webkit-transition: background-color .8s; /* Safari */ transition: background-color .8s; } #pagefooter{ background-color:#333; margin: 0px; width:100%; min-height:75px; color:#fff; } #menu{ width: 100%; left: 1px; top: 160px; } #menu, #menu *{ background:#fff !important; } #menu > li{ width: 14.2%; min-width: 95px; } #menu > li > ul{ min-width: 200px; width: auto; } #ctl06_ctl01_ctl62_ctl00, #ctl06_ctl01_ctl61_ctl00{ max-width: 110px; } #media(max-width:400){ #topbar1{ background-position: -40px -30px; } }
You can use the !important keyword in CSS. This will override default styles. #topbar2 { color: #ffffff; background: url(images/NAFF_webtracker_logo.gif) no-repeat top left !important; height: 204px; }
CSS Div Margin "Element Collision Detection"
What I need to know is how to make my CSSconfigured for div/element collision detection. Now, I realized that other questions asking for collision detection is kind of the opposite of what I need; to NOT fix it but to create it, and this is what I mean; I need to have, for example, a #altnav element, which is a sidebar, that will continually reach until it hits the #footer element using a min-height: 100% tag. What it currently does is just reach down until 100%, but stops at a certain point in my page (http://www.thehideout.somee.com/games.html to see what I mean). Another example is my #wrap element with a border-left: 2px solid #000000; tag reaches past the #footer element; which I need it to stop at the footer element. So what I'm asking is how can I make the elements detect if it's colliding with another element, and to stop at that element. Priority is key; I would rather have the sidebar with footer fixed first than the #wrap and border tag. Here's the CSS code for the key elements, followed by the whole css incase another #element is causing this. #wrap { width: 760px; margin: auto; } #altnav { margin-top: 35px; margin-bottom: 10px; float: right; width: 190px; border-left: 2px dashed #000000; border-bottom: 2px dashed #000000; min-height: 100%; background: orange; } #altnav p { color: black; font-family: terminal; font-size: 14px; border-bottom: 1px solid black; border-top: 1px solid black; } #altnav h2 { text-align: center; color: black; font-family: terminal; font-size: 18px; } #body { padding-top: 50px; width: 570px; font-family: Arial, Verdana, Terminal; font-size: 14px; } #footer { width: 730px; height: 60px; clear: both; font-family: Tahoma, Arial, Terminal, San-Serif; font-size: 10px; color: #c9c9c9; border-top: 1px solid #efefef; padding: 13px 25px; line-height: 18px; } #footer li { padding: 0px 2px 0px 2px; float: right; display: inline; text-align: left; font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; } #footer a { font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; color: #c9c9c9; text-decoration: none; } #footer a:hover { font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; color: red; text-decoration: underline; } #footer #footnav { display: inline; width: 310px; float: right; text-align: left; position: relative; bottom: 65px; } Full StyleSheet html, body { margin: 0; padding: 0; } .hidden { display: none; } body { background-position: center; background-repeat: no-repeat; font-size: 12px; color: #666666; } #font-face { font-family: 'karmatic_arcaderegular'; src: url('fonts/ka1-webfont.eot'); src: url('fonts/ka1-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/ka1-webfont.woff2') format('woff2'), url('fonts/ka1-webfont.woff') format('woff'), url('fonts/ka1-webfont.ttf') format('truetype'), url('fonts/ka1-webfont.svg#karmatic_arcaderegular') format('svg'); font-weight: normal; font-style: normal; } #wrap { width: 760px; margin: auto; } #header { height: 60px; width: auto; background: #db6d16 url(VexIMG/header.png); } #navigation { width: 760px; height: 35px; position: absolute; border-bottom: 2px solid #000000; background: orange; padding: 0px; } #navigation .padding { padding: 2px; } #navigation .navlinks { position: absolute; top: 1px; left: 0px; } #navigation .navlinks ul { margin: 0px; padding: 0px; text-align: center; list-style-type: none; width: 760px; height: 35px; } #navigation .navlinks li { position: relative; top: 5px; margin: 0px 5px 0px 5px; list-style-type: none; display: inline; } #navigation .navlinks li a { color: #000000; padding: 5px 0px 9px 0px; text-decoration: none; font-size: 18px; font-family: karmatic_arcaderegular; padding: 5px 0px 9px 0px; } #navigation .navlinks li a:hover { margin: 0px; color: #ffffff; background: orange; text-decoration: underline; } #altnav { margin-top: 35px; margin-bottom: 10px; float: right; width: 190px; border-left: 2px dashed #000000; border-bottom: 2px dashed #000000; min-height: 100%; background: orange; } #altnav p { color: black; font-family: terminal; font-size: 14px; border-bottom: 1px solid black; border-top: 1px solid black; } #altnav h2 { text-align: center; color: black; font-family: terminal; font-size: 18px; } #body { padding-top: 50px; width: 570px; font-family: Arial, Verdana, Terminal; font-size: 14px; } #body .secret img { width: 150px; height: 100px; border: 2px solid black; } #body .game { padding: 3px 3px 10px 3px; } #body .game img { align: center; float: left; width: 175px; height: 101px; border: 2px ridge #ff0000; } #body .game caption { padding-left: 1px; } #body .space { padding-top: 10px; padding-bottom: 10px; border-top: 4px ridge red; border-bottom: 4px ridge red; } #body .game caption { margin-top: 2px; float: right; font-family: Terminal, Arial, Verdana, San-Serif; font-size: 12px; color: #000000; border-bottom: 2px dashed #e9e9e9; } #body .game a { font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; color: #c9c9c9; text-decoration: none; } #body .game a:hover { font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; color: red; text-decoration: underline; } #footer { width: 730px; height: 60px; clear: both; font-family: Tahoma, Arial, Terminal, San-Serif; font-size: 10px; color: #c9c9c9; border-top: 1px solid #efefef; padding: 13px 25px; line-height: 18px; } #footer li { padding: 0px 2px 0px 2px; float: right; display: inline; text-align: left; font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; } #footer a { font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; color: #c9c9c9; text-decoration: none; } #footer a:hover { font-family: Terminal, Arial, San-Serif, Tahoma; font-size: 10px; color: red; text-decoration: underline; } #footer #footnav { display: inline; width: 310px; float: right; text-align: left; position: relative; bottom: 65px; }
printing webpages preview in chrome,mozilla and IE it is not showing properly
I want to print a web page in A4 size. Currently I used #page{size:auto},#media print{}. I need each page to have borders and it should done with out using page break. And print preview is breaking in some browsers. Please help me. My code: #media print{ #page{size: auto; margin:0px 0px 20px 0px;} .pagebreak { page-break-before: always; } body, h1, h2, h3, ol, ul, div { width: auto; border: 0; margin: 0; padding: 0; float: none; position: static; overflow: visible; } .header, .event_sidebar, .detail_header, .detail_img, .action_button, #ev_map, .related_eve, .footer{display: none;} .event_container{ max-width:730px; width:100%; height:auto; margin:0px auto; outline: none; border:double; position:relative; } .event_print_header { height: auto; max-width:730px; width: 98%; margin:0px auto; position:relative; } .event_print_header img{width:99.99%;} .event_contentarea{ width: 100%; margin: 0px; padding:0px; } .event_contentarea h3 { margin:20px 55px 2px; color:#28a7ba; font-size:18px; } .blue_border{ margin:0px 40px 10px; border:4px solid #28a7ba; padding: 30px 15px; color: #525252; } .blue_border > p { margin: 0; } .detail_left{ text-align:center; margin:-30px 40px; position:relative; } .dateright{ text-align:left; margin:0px auto; width:250px; color: #525252; font-family: "HelveticaNeue"; font-size: 17px; line-height: 25px; color:#000033; } .eve_cat{ color: #000; font-size: 20px; font-weight: bold; line-height: 20px; text-transform:uppercase; text-decoration:underline; } .detail_title{ color: #000; font-size: 20px; font-weight: bold; line-height: 20px; padding:28px 0px; } .speaker_img{ float: left; height: 160px; margin: 10px; width: 150px; } .speaker_img img { height: 150px; width: 150px; } .speaker_top{ float:left; width: 100%; height:auto; } .speaker_name{ color: #000; font-size: 130%; font-weight: 900; margin: 50px 0 2px; text-align: left; } .speaker_designation { color: #000; font-size: 110%; font-weight: normal; margin-bottom: 5px; text-align: left; } .speaker_content{ color: #000; font-family: "HelveticaNeue"; font-size: 16px; line-height: 22px; margin-bottom: 20px; text-align: left; } .detail_title > a { color: #000; text-decoration: none; } .eventinvite_print{ color: #000; margin: 0 40px 10px; padding: 0px 15px; font-style: italic; } .event_print_footer { background: #42cad6; line-height: 18px; margin-top: 10px; padding: 15px 0; } .footerevprint { margin: 0; text-align: center; color: #21281d; font-size: 16px; } } Thanks in advance
CSS background color width reduces when browser window is resized
I have a page but when I resize the browser window the background color gets cut down. I want the color to expand to the full browser width. One of my divs is bigger than the other ones. What is the fix for this? The CSS is below: #charset "utf-8"; /* ========================================================================== RESET STYLES ========================================================================== */ * { margin: 0; padding: 0; } html, button, input, select, textarea { color: #222; } body { font-size: 1em; line-height: 1.4; } img { border: 0 none; } /* ========================================================================== BASE STYLES ========================================================================== */ html { height: 100%; } body { font-family: Arial, Helvetica Sans-serif; width: 100%; height: 100%; color: #595959; } .col-full { width: 1014px; margin: 0 auto; } h1, h2, h3, h4, h5, h6 { font-family: Helvetica, Arial, Sans-serif; } /* ========================================================================== HEADER STYLES ========================================================================== */ #header h1 { margin-top: 26px; float: left; } h1 a span { display: none; } #login-form { float: right; margin: 25px 92px 12px 0; } #login-form input { width: 150px; height: 29px; line-height: 29px; border: 1px solid #a5a5a5; color: #797979; font-size: 14px; padding-left: 8px; margin-left: 3px; } #login-form #login-button { width: 72px; height: 30px; background: url(../img/login-bg.png) top repeat-x; border: 1px solid #494949; cursor: pointer; margin-left: 0; font-weight: bold; color: #FFF; font-size: 13px; padding-left: 0; text-shadow: 1px 1px 1px #3f3f3f; filter: dropshadow(color=#3f3f3f, offx=1, offy=1); } .form-buttons { margin-left: 3px; } .form-buttons a { text-decoration: none; font-size: 12px; color: #ef4926; margin-right: 116px; } .nav { clear: both; width: 100%; height: 47px; background: #000; } .nav ul { margin-top: 10px; float: left; } .nav ul li { float: left; list-style: none; margin-right: 53px; } .nav ul li a { text-decoration: none; font-family: Helvetica; font-weight: bold; color: #FFF; /*font-size: 16px;*/ font-size: 15px; } .top-heading { background: #363737; height: 57px; border-top: 1px solid #727272; border-bottom: 1px solid #727272; } .top-heading h2 { /*font-size: 28px;*/ font-size: 27px; color: #FFF; text-shadow: 1px 1px 2px #282929; filter: dropshadow(color=#282929, offx=1, offy=1); padding-top:8px; } #featured { background: url(../img/featured-gd.png) repeat-x; } #featured .col-full { background: url(../img/featured-bg.jpg) no-repeat; } .featured-content { width: 454px; float: left; margin-right: 40px; } .featured-content h2 { color: #FFF; /*font-size: 38px;*/ font-size: 37px; line-height: 1.15; margin-top: 45px; margin-bottom: 12px; text-shadow: 1px 1px 2px #282929; filter: dropshadow(color=#282929, offx=1, offy=1); } .featured-content p { font-size: 15px; color: #FFF; line-height: 1.46; } .register-btn { display: block; width: 164px; height: 39px; text-decoration: none; background: url(../img/register-btn.png) repeat-x; text-align: center; font-family: Helvetica; font-weight: bold; margin-top: 27px; font-size: 22px; color: #FFF; padding-top: 4px; -webkit-box-shadow: 0px 0px 1px 1px #2e2e2e; box-shadow: 0px 0px 2px 2px #2e2e2e; } #featured img { margin-top: 6px; margin-bottom: 2px; } /* ========================================================================== MAIN STYLES ========================================================================== */ #features { background: #ff5423; overflow: hidden; } #features h3 { line-height: 1.15; color: #FFF; font-family: Helvetica; padding-top: 24px; margin-bottom: 13px; /*font-size: 26px;*/ font-size: 25px; } .features-left { width: 447px; float: left; margin-right: 62px; } .features-right { width: 472px; float: left; } .features-right ul { margin-left: 15px; } .features-right ul li { line-height: 1.76; color: #ffc3b2; font-size: 14px; padding-left: 2px; } .features-right ul li span { font-size: 17px; color: #fefefe; position: relative; top: 2px; } .more-features { display: block; width: 144px; height: 28px; color: #fb3800; font-family: Helvetica; /*font-size: 17px;*/ font-size: 16px; font-weight: bold; text-align: center; padding-top: 4px; text-decoration: none; background: url(../img/more-features.png) repeat-x; margin-top: 38px; margin-bottom: 23px; } #client-list { border-top: 4px solid #a6a6a6; border-bottom: 4px solid #c6c6c6; padding-bottom: 7px; } #client-list .col-full { width: 1080px; } #client-list h4 { color: #4d4d4d; /*font-size: 18px;*/ font-size: 17px; margin-top: 39px; } #client-list .more-clients { float: left; text-decoration: none; font-size: 15px; color: #ff5423; } #client-list img { margin-left: 90px; margin-top: -44px; } #main { clear: both; background: url(../img/main-gd.png) repeat; } .col-446 { width: 446px; float: left; margin-right: 55px; } .col-476 { width: 476px; float: left; } .col-476 p { margin-right: 25px; } #main h3 { font-family: Helvetica; /*font-size: 28px;*/ font-size: 27px; color: #535353; line-height: 1.07; margin-top: 30px; margin-bottom: 14px; } #main p { font-size: 14px; line-height: 1.64; margin-bottom: 21px; } .site-features { margin-top: 32px; float: left; } .site-features li { list-style: none; float: left; margin-right: 35px; } li.sf-last {margin-right: 0;} .site-features li a { } .join-box { } .join-btn { } .join-box p { } /* ========================================================================== FOOTER STYLES ========================================================================== */ h4 a span { display: none; } #footer { clear: both; }
I think the best way to solve this is to add a minimum width to your body. This way when the viewport is too narrow to show all your content, a horizontal scrollbar will allow the user to access the entire page. By the looks of your content, min-width: 1100px; would be just about right.
HTML position sidebar next to content
i am currently trying to move my sidebar from below the content box to the right of it alongside it. No matter what i try it stays at a certain point no going up any higher. My website is VAGUE LINES, where if you scroll down a bit u will be able to see exactly what i am saying. Below is my css code thanks alot: h1 { text-align:center; font-family:sans-serif; letter-spacing:12px; padding-bottom:6px; border-top:1px solid rgb; margin-top:35px; color:#544E4F; font-weight:lighter; } hr { display:overline-block; width:200px; } #header { background: #FFFFFF; text-align: center; } #navigation ul { margin: 0; padding: 0; list-style-type: none; text-align: center; } #navigation ul li { display: inline; padding-right: 30px; } #navigation ul li a { text-decoration: none; padding: .3em 5em; color: #000000; background-color: #FFFFFF; font-family: courier; } #navigation ul li a:hover { text-decoration: line-through; } .centeredImage { float: none; margin: 4% 0 2% 9%; text-align: center; padding-bottom: 25px; } #main-content hr { width :66%; margin-left: 9%; } #main-content { width:80%; padding-left: 113px; padding-top: 20px; } #page-wrap { background: white; min-width: 780px; max-width: 1260px; margin: 10px auto; } #page-wrap #inside { margin: 10px 10px 0px 10px; padding-top: 10px; padding-bottom: 10px; } #sidebar{ border-top: 1px solid #99CC33; border-left: 1px solid #99CC33; height: 300px; width: 200px; margin-right: 5px; padding: 5px 0 0 5px; position:absolute; } #main-content p { margin-left: 10%; font-family: courier; font-size: 14px; } #heading p { margin-left: 10%; font-family: sans-serif; font-size: 14px; } #sidebar p { margin-left: 10%; font-family: courier; font-size: 14px; font-weight:bold; }
Try this: #main-content { float: left; // float element to the left side width:80%; padding-left: 113px; padding-top: 20px; } #sidebar{ border-top: 1px solid #99CC33; border-left: 1px solid #99CC33; height: 300px; width: 200px; margin-right: 5px; padding: 5px 0 0 5px; position:absolute; right: 0; // position element to the right } EDIT: Sorry. You wanted sidebar on the right.