lists not showing bullets in html5 css - css

I am using Dreamweaver to edit an HTML5 CSS site, but the bullets refuse to show up on lists. I don’t know whether the issue is Safari or the code for the site.
I have tried many suggestions and been unable to find a solution.
INDEX.HTML
<li id="page_donations">
<div class="contPad">
<div>
<h2>What we Do</h2>
<div class="scrollingDiv">
<ul class="list">
<li>
<div>
<h5>DESIGN</h5>
<p>Concept development, graphic design, web design, and logo design.</p>
</div>
</li>
<li>
<div>
<h5>MARKETING</h5>
<ul class="list">
<li>Identify, segment, or focus on your target market
<ul>
<li>Marketbridge can help you assess and narrow down your target market through a variety of traditional and non-traditional strategies including:
<ul>
<li>Market segmentation, database mining and development, leveraging market intelligence, conducting studies and consumer surveys among some of the strategies applied</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</li>
<li>
<div>
<h5>BRANDING</h5>
<p>Marketbridge's success will help drive our vision of cultivating a more cohesive professional and social network within businesses and communities which helps to fuel commerce and goodwill within our communities.</p>
</div>
</li>
<li>
<div>
<h5>PUBLIC RELATIONS</h5>
<p>Quality and integrity are supported by our strategies to help maximize the return on investment in the least amount of time. </p>
</div>
</li>
<li>
<div>
<h5>ADDITIONAL SERVICES</h5>
<p>Quality and integrity are supported by our strategies to help maximize the return on investment in the least amount of time. </p>
</div>
</li>
</ul>
</div>
</div>
</div>
</li>
STYLE.CSS
#import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300);
#import url(http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700);
/* Left & Right alignment */
.left {
float:left;
}
.right {
float:right;
}
.wrapper {
width:100%;
overflow:hidden;
position:relative;
}
.box {
overflow:hidden;
}
.clear {
clear:both;
width: 100%;
}
.last {
background:none !important;
border:none !important;
}
.pad_0 {
padding:0 !important;
}
/* Global properties ======================================================== */
body, html, .extra, #left_bg{
height:100%;
min-width:1220px;
min-height:550px;
}
body {
overflow:hidden;
border:0;
font:14px/20px Arial, sans-serif;
color:#FFF;
background:url(../images/27.jpg) 0 0 repeat;
}
#left_bg{
position:absolute;
width:81px;
background:url(../images/27_left.jpg) 0 0 repeat-y;
z-index:-1;
}
/* Global Structure ============================================================= */
.extra {
overflow:hidden;
margin-bottom:-80px;
}
.main {
position:relative;
}
.page_spinner {
position:fixed;
background: url(../images/main_spinner.gif) 50% 50% no-repeat #fff;
z-index:99;
width:100%;
height:100%;
top:0;
left:0
}
/* ============================= main layout ====================== */
a {
color:#909090;
text-decoration: none;
outline:none;
}
a:hover {
color:#757575
}
h1 {
position:absolute;
padding:0 0 0 0;
}
h2 {
font:35px/35px 'Open Sans Condensed', sans-serif;
color:#FFF;
font-weight:700;
padding-bottom:15px;
text-shadow: 1px 1px 6px #665d58;
}
h3{
font:18px/ 20px 'PT Sans Narrow', sans-serif;
color:#fff;
font-weight:700;
padding-bottom:7px;
text-shadow: 1px 1px 6px #665d58;
}
h4{
font:14px/20px Arial, sans-serif;
font-weight:normal;
text-shadow: 1px 1px 6px #665d58;
}
h5{
font:16px/16px 'Open Sans Condensed', sans-serif;
font-weight:600;
text-shadow: 1px 1px 6px #665d58;
}
h5 a{
font:16px/16px 'Open Sans Condensed', sans-serif;
color:#fff;
text-decoration: none;
outline:none;
font-weight:600;
text-shadow: 1px 1px 6px #665d58;
}
h5 a:hover{
font:16px/16px 'Open Sans Condensed', sans-serif;
color:#757575
font-weight:600;
text-shadow: 1px 1px 6px #665d58;
}
p{
padding-bottom:7px;
text-shadow: 1px 1px 6px #665d58;
}
.color1{
color:#74398e !important;
}
.color2{
color:#bd3274;
}
.color3{
color:#15b3f9;
}
V.color4{
color:#afbf44;
}
.color5{
color:#f8cc07;
}
.color6{
color:#ee8d1b;
}
.color7{
color:#e0191c;
}
.color8{
color:#000;
}
.color8 a {
color:#909090;
text-decoration: none;
outline:none;
}
color8 a:hover {
color:#757575
}
div.scrollingDiv
{
overflow-y:scroll;
height: 350px;
}
/* ============================= header ====================== */
header{
position:relative;
overflow:hidden;
width:1220px;
height:502px;
padding-top:145px;
}
#logo {
display:block;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
width:235px;
height:153px;
background:url(../images/logo.png) 0 0 no-repeat;
}
/* ============================= menu ====================== */
#leftLines{
float:left;
width:81px;
height:502px;
background:url(../images/left_menu_line.png) 0 0 no-repeat;
}
.menu {
float:left;
width:1139px;
height:502px;
}
#menu{
padding-top:121px;
}
#menu > li {
height:27px;
display:block;
margin-bottom:11px;
}
#menu > li > span{
display:inline-block;
width:50px;
height:27px;
}
#menu > li a {
position:relative;
top:-1px;
left:-3px;
font:34px/28px 'Impact', sans-serif;
text-transform:uppercase;
font-weight:normal;
}
#item1 > span{
background:url(../images/menu_line1.png) 0 0 repeat-x;
}
#item2 > span{
background:url(../images/menu_line2.png) 0 0 repeat-x;
}
#item3 > span{
background:url(../images/menu_line3.png) 0 0 repeat-x;
}
#item4 > span{
background:url(../images/menu_line4.png) 0 0 repeat-x;
}
#item5 > span{
background:url(../images/menu_line5.png) 0 0 repeat-x;
}
#item6 > span{
background:url(../images/menu_line6.png) 0 0 repeat-x;
}
#item7 > span{
background:url(../images/menu_line7.png) 0 0 repeat-x;
}
/* ============================= pages ====================== */
#page_home, #page_privacy, #page_more{
background:url(../images/page1_top_line.png) 0 0 repeat-x;
}
#page_mission{
background:url(../images/page2_top_line.png) 0 0 repeat-x;
}
#page_donations{
background:url(../images/page3_top_line.png) 0 0 repeat-x;
}
#page_news{
background:url(../images/page4_top_line.png) 0 0 repeat-x;
}
#page_reports{
background:url(../images/page5_top_line.png) 0 0 repeat-x;
}
#page_links{
background:url(../images/page6_top_line.png) 0 0 repeat-x;
}
#page_contacts{
background:url(../images/page7_top_line.png) 0 0 repeat-x;
}
/* ============================= content ====================== */
#content {
position:absolute;
top:160px;
padding:5px 0px 12px 0px;
width:711px;
height:453px;
background:url(../images/page_plane.png) 0 0 no-repeat;
z-index:5;
}
#content > ul {
position:relative;
width:100%;
height:100%;
overflow:hidden;
}
#content > ul > li {
position:absolute;
width:100%;
height:584px;
padding-top:24px;
left: -26px;
top: -18px;
}
.contPad{
padding:0px 30px 0 40px;
}
.padBot1{
padding-bottom:40px;
}
.padBot2{
padding-bottom:25px;
}
.padTop1{
padding-top:20px;
}
.rBorder{
background:url(../images/content_step_line.png) right 0 repeat-y;
}
.more1, .more2{
position:relative;
margin-top:12px;
display:inline-block;
color:#fff;
-webkit-border-radius:8px;
-moz-border-radius:8px;
border-radius:8px;
-webkit-transition:color 0.5s ease;
-moz-transition:color 0.5s ease;
-o-transition:color 0.5s ease;
transition:color 0.5s ease;
padding:7px 14px 10px;
font:18px/ 18px 'PT Sans Narrow', sans-serif;
font-weight:700;
text-shadow: 1px 1px 0px #665d58;
border-top:1px solid #646464;
border-right:1px solid #646464;
background:url(../images/more_1.png) 0 0 repeat-x;
}
.more1:hover{
color:#febe3b;
}
.more2{
margin-top:0px;
padding:5px 14px 8px;
font:22px/ 22px 'PT Sans Narrow', sans-serif;
font-weight:300;
letter-spacing:1px;
text-shadow: 1px 1px 0px #14b1f6;
border-top:1px solid #14b1f6;
border-right:1px solid #14b1f6;
background:url(../images/more_2.png) 0 0 repeat-x;
}
.more2:hover{
color:#3b3019;
}
.imgBot{
padding-bottom:16px;
}
#table1{
margin-bottom:35px;
height:253px;
border-bottom:1px solid #a6a6a6;
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
}
#tableHeader{
background-color:#15b3fa;
}
#tableHeader, #table1 .col1{
font-size:14px;
color:#151515;
font-weight:bold;
text-transform:uppercase;
}
#table1 #tableHeader td{
height:41px;
}
#table1 .anotherColor{
background-color:#efeff0;
}
#table1 td{
height:30px;
}
#table1 tr{
vertical-align:middle;
}
#table1 .col1{
border-left:1px solid #e9e9e9;
border-right:1px solid #c9c9ca;
width:43px;
text-align:center;
}
#table1 .col2{
width:440px;
text-indent:20px;
}
#table1 .col3{
border-left:1px solid #c9c9ca;
border-right:1px solid #e9e9e9;
width:149px;
text-align:center;
}
#page1_top{
padding:25px 0px 0px 45px;
width:560px;
height:200px;
background:url(../images/page1_pic1.) 0 0 no-repeat;
}
#page1_top > div{
padding-bottom:13px;
font:34px/ 34px 'Open Sans Condensed', sans-serif;
color:#FFF;
font-weight:300;
text-shadow: 1px 1px 6px #665d58;
}
#page1_top > div > span{
display:block;
font:50px/ 50px 'Open Sans Condensed', sans-serif;
color:#FFF;
font-weight:700;
}
.google_map{
float:left;
width: 360px;
height: 180px;
background: #fff;
}
.address {
width:230px;
padding-left:20px;
float:left;
}
.address > span{
display:block;
width:160px;
font:18px/ 20px 'PT Sans Narrow', sans-serif;
color:#757575;
font-weight:700;
padding-bottom:7px;
}
.mailLink{
color:#e0191c;
text-decoration:none;
}
.mailLink:hover{
text-decoration:underline;
}
/* ============================= lists ====================== */
.list1 li{
overflow:hidden;
width:270px;
padding-bottom:20px;
}
.list1 li > img{
float:left;
padding-right:10px;
}
.list1 li > ul{
overflow:hidden;
padding-top:7px;
width:178px;
}
.list2 li{
overflow:hidden;
padding-bottom:8px;
}
.list2 li > img{
float:left;
padding-right:18px;
}
.list2 li > div{
float:left;
overflow:hidden;
width:224px;
}
.list2 li > div a:hover{
text-decoration:underline;
}
.list3 li{
padding-bottom:17px;
}
.list3 li > img{
padding-bottom:16px;
}
.list3 li a{
font:18px/ 20px 'PT Sans Narrow', sans-serif;
color:#757575;
font-weight:700;
padding-bottom:7px;
}
.list3 li a:hover{
text-decoration:underline;
}
.list4{
margin-bottom:-10px;
}
.list4 li{
overflow:hidden;
padding-bottom:10px;
}
.list4 li > img{
float:left;
padding-right:20px;
}
.list4 li > div{
float:left;
overflow:hidden;
width:354px;
}
.list5 li{
padding-bottom:11px;
}
.list5 p{
line-height:18px;
padding-bottom:8px;
}
.list5 a{
font-size:13px;
font-weight:bold;
color:#ff6400;
}
.list5 a:hover{
text-decoration:underline;
}
.listWithMarker1 li, .listWithMarker2 li {
display:block;
padding-bottom:4px;
}
.listWithMarker1 li a, .listWithMarker2 li a {
display:inline-block;
padding:0 5px 0 17px;
text-decoration:underline;
}
.listWithMarker1 li a, .listWithMarker2 li a {
-webkit-transition:color 0.3s ease;
-moz-transition:color 0.3s ease;
-o-transition:color 0.3s ease;
transition:color 0.3s ease;
}
.listWithMarker1 li a {
color:#ff2a29;
background:url(../images/list_marker_1.png) 0 5px no-repeat;
}
.listWithMarker2 li a {
color:#feb829;
background:url(../images/list_marker_2.png) 0 5px no-repeat;
}
.listWithMarker1 li a:hover, .listWithMarker2 li a:hover {
color:#757575;
}
/* ============================= footer ====================== */
footer{
position:relative;
width:1100px;
font:15px/ 15px 'Open Sans Condensed', sans-serif;
color:#757575;
font-weight:700;
text-align:center;
text-transform:uppercase;
}
footer a{
text-decoration:none;
color:#c2c2c2;
}
footer ul{
padding-top:9px;
}
footer ul li{
display:inline-block;
padding-right:1px;
}
#icon1, #icon2{
display:block;
width:31px;
height:31px;
}
#icon1{
background:url(../images/icon1.png) 0 0 no-repeat;
}
#icon2{
background:url(../images/icon2.png) 0 0 no-repeat;
}
/* ============================= forms ============================= */
#form1 input {
margin:0;
border:1px solid #adadad;
background-color:#fff;
padding:15px 0 15px 17px;
width:252px;
box-shadow:none;
}
#form1 textarea {
resize: none;
margin:0;
border:1px solid #adadad;
background-color:#fff;
padding:14px 0 5px 17px;
width:330px;
height:92px;
overflow:auto;
line-height:18px;
}
#form1 label {
position:relative;
display:inline-block;
min-height:60px;
}
#form1 .error, #form1 .empty {
position:relative;
top: -3px;
display:none;
font-size:10px;
color:#414040;
text-transform:none;
}
.btns{
float:right;
}
.btns a{
margin:18px 0 0 13px;
}
/* Form defaults */
input, select, textarea {
font:14px/20px Arial, sans-serif;
color:#909090;
}
.blacktext {
color: #000;
}
.fb {
vertical-align: middle;
padding:40px 40 40px 40px;
}
RESET.CSS
a, abbr, acronym, address, applet, article, aside, audio,
b, blockquote, big, body,
center, canvas, caption, cite, code, command,
datalist, dd, del, details, dfn, dl, div, dt,
em, embed,
fieldset, figcaption, figure, font, footer, form,
h1, h2, h3, h4, h5, h6, header, hgroup, html,
i, iframe, img, ins,
kbd,
keygen,
label, legend, li,
meter,
nav,
object, ol, output,
p, pre, progress,
q,
s, samp, section, small, span, source, strike, strong, sub, sup,
table, tbody, tfoot, thead, th, tr, tdvideo, tt,
u, ul,
var {
background: transparent;
border: 0 none;
font-size: 100%;
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: top; }
ol, ul {
list-style-position:inside;
list-style: circle;
}
blockquote, q {
quotes: none;
}
table, table td {
padding:0;
border:none;
border-collapse:collapse;
}
img {
vertical-align:top;
}
embed {
vertical-align:top;
}
* { border:none}
input, textarea{ outline:none !important}
article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure,
footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video{
display: block; }
mark, rp, rt, ruby, summary, time{ display: inline }
LAYOUT.CSS
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12,
.grid_13,
.grid_14,
.grid_15,
.grid_16,
.grid_17,
.grid_18,
.grid_19,
.grid_20,
.grid_21,
.grid_22,
.grid_23,
.grid_24 {
float: left;
}
.rightIndent{
padding-right:10px;
}
.rightIndent1{
padding-right:40px;
}
.rightIndent2{
padding-right:50px;
}
.leftIndent1{
padding-left:40px;
}
.leftIndent2{
padding-left:40px;
}
.height1{
}
.grid_1 {
width:30px;
}
.grid_2 {
width:70px;
}
.grid_3 {
width:110px;
}
.grid_4 {
width:150px;
}
.grid_5 {
width:190px;
}
.grid_6 {
width:230px;
}
.grid_7 {
width:270px;
}
.grid_8 {
width:310px;
}
.grid_9 {
width:350px;
}
.grid_10 {
width:390px;
}
.grid_11 {
width:430px;
}
.grid_12 {
width:470px;
}
.grid_13 {
width:510px;
}
.grid_14 {
width:550px;
}
.grid_15 {
width:590px;
}
.grid_16 {
width:630px;
}
.grid_17 {
width:670px;
}
.grid_18 {
width:710px;
}
.grid_19 {
width:750px;
}
.grid_20 {
width:790px;
}
.grid_21 {
width:830px;
}
.grid_22 {
width:870px;
}
.grid_23 {
width:910px;
}
.grid_24 {
width:950px;
}

Having scotch-taped your code snippets together, I see two reasons for your disappearing bullets: first of all, make sure that the lists have a sufficient margin on the left to actually display the bullets (20px should be enough) and, if the little buggers are still hiding (such as is the case in your example, white text on a white background?), give the list some color. Something like this:
ul.list{
margin-left: 20px;
color: deeppink;
}
You're still going to face the problem that the bullets don't have a text-shadow, for which I cannot give you a quick and dirty answer. Personally, I'd hide the bullets, give my list-items some padding and stick a properly styled background-image in there.

I know this is an old question, but since I had the same issue and resolved it after seeing this, I figured I'd answer the question for someone else.
If you use CSS3 property
display:block;
for list items, the list-style / list-style-type properties will be ineffective. See http://www.w3schools.com/tags/tag_li.asp
Remove display:block; or reset to display: list-item;

Related

Block with the goods "dropped" under the unit categories

This is my problem:
If i used standart pictures and description (like picture 1) - i have good appearance of the site. But when I use the data from the database, the block catalog moves down the left (picture 2).
The code is the same in both cases, but the appearance is very different
#wrapper {
margin-top:40px;
width: 1200px;
margin: 0 auto;
height: auto !important;
}
#category
{
padding:10px 10px 10px 20px;
border-left: 1px solid #d9d9d9;
border-right: 1px solid #d9d9d9;
border-bottom: 1px solid #d9d9d9;
width:200px;
clear:both;
display:block;
}
#category ul li{
word-wrap: break-word;
list-style-image: url(/neoshop/images/check.png);
padding:10px 0px 10px 10px;
border-bottom:1px dotted #cccccc;
}
#category ul li:last-child{
border-bottom:0px dotted #cccccc;
}
#category ul li a{
font:15px/1.3 "Arial", Arial,Helvetica, sans-serif;
margin-top:0px;
font-weight:100;
display:block;
color:#2f3638;
text-decoration:none;
line-height:20px;
}
#category ul li a:hover{
color:#0bb1e8;
}
#category ul ul a{
list-style-image:none;
color:#8b8b8b;
background:#fff;
}
#category ul ul{
margin-top:5px;
display:none;
color:#8b8b8b;
background:#fff;
}
#category ul ul li{
word-wrap: break-word;
list-style-image: none;
padding:10px 0px 10px 10px;
border-bottom:1px dotted #cccccc;
}
.catalog
{
margin-left:12px;
float:left;
width:948px;
}
.product-main
{
width:236px;
height:285px;
float:left;
}
.product{
border-right:1px dotted #cccccc;
padding:0 15px;
}
.product h2{
color:#111017;
text-align:center;
font:bold 14px/1.3 Tahoma;
margin:0 0 15px 0;
}
.product h3{
color:#111017;
text-align:center;
font:bold 12px/1.3 Tahoma;
margin:0 0 15px 0;
}
.product-img{
text-align:center;
}
.product-img img{
weight:114px;
height:112px;
}
.price{
font:13px/1.3 "Arial", Arial,Helvetica, sans-serif;
color:#0bb1e8;
}
.price span{
font:13px/1.3 "Arial", Arial,Helvetica, sans-serif;
color:#111017;
text-align:center;
}
.price a{
clear:both;
float:right;
}
.bot-dot
{
border-bottom:1px dotted #cccccc;
margin:20px;
}
.product-main:nth-child(4n) .product
{
border-right:none;
}
.product-main:last-child .product
{
border-right:none;
}
.product-main:nth-child(4n) .bot-dot
{
margin: 20px 0 20px 20px;
}
.product-main:nth-child(4n+1) .bot-dot
{
margin: 20px 20px 20px 0px;
}
It must be like this:
But i have this:
when the actual images are being loaded,
the total width of your catalog increases more than 948px and so it has to move to next line.
in
.product-img img{
weight:114px;
height:112px;
}
instead of width you have specified weight by mistake

Change font size for Blogger pages

The font size on my blog pages is significantly smaller than the font size in my regular blog posts. Here is a normal blog post with the font size I want: http://thereadinggrotto.blogspot.sg/2014/06/first-post.html
Here is the font size on one of the blog pages: http://thereadinggrotto.blogspot.sg/p/about-mermaid.html
I want to make the font on my pages larger.
I have tried tweaking the variable values but when I change the '11px' and '12px' to 15px, all it does is screw up the font size of my home page, which is not what I want.
The variable which screwes up the home page when I tweak it:
<Variable name="bodyfont" description="Text Font"
type="font" default="normal normal 11px Arial, Georgia, Serif" value="normal normal 12px Arial, Tahoma, Helvetica, FreeSans, sans-serif">
CSS for my blog posts (which does not seem to apply to blog pages):
/* =============================
Posts
============================= */
.post {
margin:.5em 0 1.5em;
border-bottom:1px solid #d3ebe1;
padding-bottom:1.5em;
font-family:'Cabin', sans-serif;
color:#305e58;
}
.post h3 {
margin:.25em 0 0;
padding:0 0 4px;
font-size:160%;
line-height:1.4em;
color:#305e58;
font-family:Yanone Kaffeesatz;
}
.post h3 a, .post h3 a:visited, .post h3 strong {
display:block;
text-decoration:none;
color:#305e58;
font-weight:400;
}
.post h3 strong, .post h3 a:hover {
color:#09877d;
}
.post-body {
margin:0 0 1.75em;
line-height:160%;
font:15px 'Cabin', sans-serif;
color:#305e58;
}
.post-body blockquote {
line-height:1.3em;
}
.post-footer {
margin:.75em 0;
color:#8ba69b;
text-transform:uppercase;
letter-spacing:0.2px;
font:11px 'Cabin', sans-serif;
line-height:1.4em;
}
.comment-link {
margin-startside:.6em;
}
.post img {
max-width:640px;
height:auto;
}
.post table. tr-caption-container {
padding-bottom:4px;
}
.tr-caption-container img {
border:none;
padding:0;
}
.post blockquote {
margin:1em 20px;
padding:2px 5px 2px 35px;
font-style:normal;
color:#305e58;
}
.post blockquote p {
margin:.75em 0;
}
Another section of the CSS:
<b:if cond='data:blog.pageType == "item"'>
<style>
#outer-wrapper {
width:960px
}
#main-wrapper {
width:680px;
margin:0 10px 0 0;
border-left:1px solid #d3ebe1;
padding-left:15px;
}
#post-header-top {
border-bottom:1px solid #d3ebe1;
margin-bottom:20px;
padding-left:40px;
}
.date-post-top-wrapper {
float:left;
margin-right:10px;
}
.date-container {
width:auto;
height:auto;
text-align:center;
border-right:1px solid #d3ebe1;
padding:0 20px 10px 0;
margin-top:5px;
text-transform:uppercase;
}
.post-date-day-name {
font:300 25px Yanone Kaffeesatz;
color: #305e58
}
.post-date-day-month-year {
font:normal 10px Cabin;
color:#305e58
}
.post h3 {
margin:0 0 5px;
font:300 33px Yanone Kaffeesatz;
text-transform:uppercase;
color:#305e58
}
.post-footer {
padding:5px 10px;
margin:0 0 5px;
background:#d3ebe1;
border:1px solid #d3ebe1;
margin-left:40px;
}
.post {
margin:0 0 1.5em;
line-height:1.6em;
}
.post-body {
margin:0 0 1.75em;
font:15px Cabin, sans-serif;
line-height:160%;
margin-left:40px;
}
.post img {
max-width:640px;
height:auto;
}
.comments {
margin-left:40px;
}
#blog-pager {
margin-left:40px;
}
#related-posts {
float:center;
text-transform:none;
height:100%;
min-height:100%;
padding-top:5px;
margin-left:40px;
}
#related-posts h2 {
color:#305e58;
padding:5px;
margin:0 0 10px;
text-align:center;
background:#edf7f2;
border-top:1px solid #d3ebe1;
font:300 17px Yanone Kaffeesatz;
}
#related-posts a {
color:#305e58;
overflow:hidden;
display:block;
width:80px;
height:155px;
}
#related-posts a:hover {
background:#d3ebe1;
color:#8ba69b;
overflow:hidden;
}
#related-posts a img {
transition:.3s linear;
-moz-transition:all .3s;
-webkit-transition:.3s linear;
box-shadow:none;
padding:4px;
padding-top:7px;
}
#related-posts a img:hover {
transition:.3s linear;
-moz-transition:all .3s;
-webkit-transition:.3s linear;
margin-bottom:5px;
}
#rptxt{
padding-top:5px;
width:68px;
height:65px;
margin:5px;
border-top:1px solid #d3ebe1;
font:300 13px Cabin, sans-serif;
font-style:italic;
}
</style>
I've put 15px for the font, but it's still 12px on pages.
Updating my answer, since that solution doesn't work for you.
The CSS code you have added in your question. update it, with this.
/* =============================
Posts
============================= */
.post {
margin:.5em 0 1.5em;
border-bottom:1px solid #d3ebe1;
padding-bottom:1.5em;
font:normal 15px 'Cabin', sans-serif;
color:#305e58;
}
you can see that i have changed the font property. try this it should work.

My website is not fitting to each screen resolution of pc

Hello i have created a website in 3 months using HTML, CSS, Jquery and PHP.
for design and layout i have used CSS, after building this website i have noticed that
Whenever i m opening my website in small screens so there is need of width scroll to see
whole page especially the language dropdown selection in right corner of page.
in my CSS i have used PX for divs such as wrapper, header and etc
Someone told me to use Percentage instead of PX, but i have reached to end.
First guys what i should do to solve this problem?
Second is there any way to convert from PX to Percentage.
.wrapper
{
width:1320px;
height:760px;
border:solid 1px #000;
margin:0 auto;
background:url(images/Background_Image.jpg) no-repeat;
}
.wrapper .logo
{
background:url(images/logo.png) no-repeat bottom;
width:360px;
height:180px;
margin-left:345px;
margin-top:10px;
float:left;
}
.wrapper .language
{
float:right;
background-color:#006;
padding:5px 10px;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.2em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-align:center;
}
.wrapper .language a
{
color:#FFF;
text-decoration:none;
font:"calibiri";
}
.wrapper .search_property
{
width:300px;
height:500px;
margin-right:58px;
margin-top:80px;
float:right;
}
.wrapper .search_property .title
{
background:url(images/protitle.fw.png) no-repeat;
width:295px;
height:80px;
margin-bottom:10px;
float:left;
text-align:center;
color:#FFF;
font: bold 1.7em "Calibri";
}
.wrapper .search_property .province
{
background:url(images/proprovince.fw.png) no-repeat;
width:295px;
height:70px;
float:left;
margin-bottom:10px;
text-align:center;
}
/* start design for the province */
select
{
width:195px;
margin-top:23px;
padding:3px 3px 3px 46px;
font: bold 1em "Calibri";
-webkit-border-radius:1px;
-moz-border-radius:1px;
border-radius:1.3px;
-webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
-moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
background: #f6f6f8;
color:#000;
border:none;
outline:none;
display: inline-block;
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
cursor:pointer;
}
option
{
text-align:center;
}
/* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
#media screen and (-webkit-min-device-pixel-ratio:0) {
select {padding-right:18px}
}
.la
{
position:relative;
}
.la:after {
content:'<>';
font:11px "Consolas", monospace;
color:#000;
-webkit-transform:rotate(90deg);
-moz-transform:rotate(90deg);
-ms-transform:rotate(90deg);
transform:rotate(90deg);
right:8px; top:2px;
padding:0 0 2px;
border-bottom:1px solid #ddd;
position:absolute;
pointer-events:none;
}
.la:before {
content:'';
right:3.5px;
top:-1px;
width:25px; height:22px;
background:#ccc;
position:absolute;
pointer-events:none;
display:block;
}
/* end design for the province */
.wrapper .search_property .district
{
background:url(images/prodistrict.fw.png) no-repeat;
width:295px;
height:70px;
float:left;
margin-bottom:10px;
text-align:center;
}
.wrapper .search_property .propertystatus
{
background:url(images/prostatus.fw.png) no-repeat;
width:295px;
height:90px;
float:left;
margin-bottom:10px;
color:#FFF;
padding:20px 0 0 0;
}
radio
{
cursor:pointer;
}
.wrapper .search_property .probutton
{
width:270px;
height:50px;
float:left;
margin-bottom:3px;
padding:0 0 0 25px;
}
.wrapper .search_property .postprobutton
{
width:285px;
height:40px;
float:left;
margin-top:5px;
padding:0 0 0 10px;
}
#Submitbutton
{
background: #006 url(images/a.fw.png) no-repeat right;
padding:5px 15px;
border-radius:4px;
width:233px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.5em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-align:left;
}
#pypbutton
{
background: #006 url(images/Property%20List.png) no-repeat right;
padding:5px 15px;
border-radius:4px;
-webkit-border-radius:4px;
-moz-border-radius:4px;
-ms-border-radius:4px;
-o-border-radius:4px;
border:#00AEEF;
color: #FFFFFF;
font:bold 1.4em "Calibri";
margin:0px 0px 0px 0px;
cursor:pointer;
text-decoration:none;
}
.wrapper .slideshow
{
width:395px;
height:264px;
margin-left:325px;
margin-top:24px;
float:left;
}
.wrapper .menu
{
width:412px;
height:20px;
margin-left:327px;
margin-top:40px;
float:left;
}
.wrapper .menu .aboutus
{
width:68px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .myaccount
{
width:85px;
height:18px;
color:#fff;
margin:0px 5px 0px 0px;
font: 1em Arial, Helvetica, sans-serif;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .services
{
width:65px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .career
{
width:54px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
border-right:#039 solid 3px;
}
.wrapper .menu .contactus
{
width:87px;
height:18px;
color:#fff;
font: 1em Arial, Helvetica, sans-serif;
margin:0px 5px 0px 0px;
cursor:pointer;
float:left;
}
.wrapper .footer
{
background:url(images/footerbg.jpg) bottom;
width:1120px;
height:155px;
margin-top:15px;
float:left;
margin-left:100px;
}
.wrapper .footer .footer_in
{
width: 900px;
height: auto;
margin: auto;
padding: 14px 0px 0px 0px;
}
.wrapper .footer .footer_in .footer_navigation
{
/*width:412px;*/
height:128px;
float:left;
font-size:11px;
background:url(images/border.jpg) right no-repeat;
font: 1em "Calibri";
width:350px;
}
.wrapper .footer .footer_in .footer_navigation .fn_heading
{
width:310px;
font: 1em "Calibri";
color:#fff;
height:37px;
font-size:12px;
background:url(images/footerimg.png) no-repeat;
padding-left:10px;
line-height:24px;
}
.wrapper .footer ..footer_in .footer_navigation ul {
float:left;
width:320px;
padding-left:9px;
}
.wrapper .footer .footer_in .footer_navigation li {
float:left;
width:127px;
background:url(images/listimg.gif) no-repeat left;
padding-left:12px;
display:block;
padding-bottom:4px;
}
.wrapper .footer .footer_in .footer_navigation li a
{
color:#fff;
text-decoration:none;
}
.wrapper .footer .footer_in .footer_navigation li a:hover {
text-decoration:underline;
}
.wrapper .footer .footer_in .copyright
{
background: url(images/border.gif) no-repeat scroll right center transparent;
color: #FFFFFF;
float: left;
font: 1em "Calibri";
min-height: 94px;
padding-left: 14px;
padding-right: 30px;
padding-top: 35px;
}
.wrapper .footer .footer_in .copyright a
{
padding-bottom:5px;
color:#fff;
text-decoration:none;
}
.wrapper .footer .footer_in .copyright a:hover
{
text-decoration:underline;
}
.wrapper .footer .footer_in .footer-add
{
text-align:center;
width:220px;
float:right;
margin-left:10px;
font: 1em "Calibri";
}
.wrapper .footer .footer_in .footer-add a
{
color:#fff;
background:url(images/link_for_scale-new_03.png) no-repeat bottom;
height:122px;
display:block;
}
Check your monitor resolution (By the CSS, my guess is that it is 1440x768).
Now do this math with every pixel value: ("Pixel Width Value"/1440)*100 and ("Pixel Height Value"/768)*100.
That is your value in %!
Some elements might not work properly, but it's a good way to start.
There are also other units that can work depending on the screen size
check one of them here.
However I think % might be the best for you to start out.

CSS: Can't make space for sidebar

I'm trying to have my ads show up on the the right side of a page. I have set the width of the content & navigation to 75%.
div.comments, div.navigation {
margin-left:1.5em;
margin-right:1.5em;
width: 75%;
}
#content {
margin: 1em 0px;
width: 75%;
float: left;
padding-top: 1.1em;
}
the side bar is set to 200px. Which is much less than 25% on most screen.
But the content still is taking up some extra space display here in the orange.
I cannot figure where this is coming from. I've spent the last hour using google developer tool to resolve it. Below is style.css. The page can be found at gazzetesm.com. The Our Partner's Page style is what I am trying to achieve.
style.css
/*
Theme Name: Gonzo Daily
Theme URI: http://greatgonzo.net/projects/gonzodaily
Description: Gonzo Daily is flexible-width three-column theme for WordPress. It has a newspaper-like front page, featuring three columns of text for browsers that support CSS columns (currently only Firefox, more to come)<br /><br />Wordpress Widgets ready.<br /><br />The font used in the header is Gputeks by gluk, licensed under SIL Open Font License.
Version: 1.4
Author: Milen Petrinski - Gonzo
Author URI: http://greatgonzo.net/
Tags: black, two-columns, three-columns, right-sidebar, flexible-width
*/
/**
* Eric Meyer's Reset stylesheet - http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
*/
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,font,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td {
margin:0;
padding:0;
border:0;
font-size:100%;
font-family:inherit;
vertical-align:baseline;
}
/*
* Created by gluk with FontForge 1.0 (http://fontforge.sf.net)
* This Font Software is licensed under the SIL Open Font License, V.1.1.
* This license is available with a FAQ at: http://scripts.sil.org/OFL.
* Copyright (c) 2008, gluk,(gluksza#wp.pl) with Reserved Font Name Gputeks.
*/
#font-face {
font-family: "Gputeks";
src:url(fonts/Gputeks-Regular.ttf);
font-style: normal;
font-weight: normal;
}
/*
* Created by gluk with FontForge 1.0 (http://fontforge.sf.net)
* This Font Software is licensed under the SIL Open Font License, V.1.1.
* This license is available with a FAQ at: http://scripts.sil.org/OFL.
* Copyright (c) 2008, gluk,(gluksza#wp.pl) with Reserved Font Name Gputeks.
*/
#font-face {
font-family: "Gputeks";
src:url(fonts/Gputeks-Bold.ttf);
font-style: normal;
font-weight: bold;
}
/**
* GLOBALS
*/
html {
background: #fff;
text-align:center;
}
body {
background: #fff;
text-align:justify;
margin:0 auto 0 auto;
padding:0;
max-width:95%;
line-height:1;
color:black;
font-family:Georgia,"Lucida bright","Times new roman",Georgia,"lucida bright",serif;
font-size:11pt;
}
h1, h2 {
font-size:1.8em;
text-align:left;
font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
font-weight:normal;
font-style:normal;
}
h3 {
text-align:left;
font-size:1.2em;
font-weight:bold;
line-height:1.1em;
font-style:italic;
margin-bottom: 1.4em;
}
h4 {
font-size: 1em;
line-height:1.5em;
font-weight:normal;
font-style:normal;
}
hr {
display:none;
}
a {
text-decoration:none;
color:#633B18;
font-weight:inherit;
font-style:inherit;
}
a:visited {
color:#633B18;
}
a:hover {
text-decoration:underline;
color:#AE3000;
/*text-shadow: #666 2px 2px 5px;*/
}
a:focus {
color:#AE3000;
/*outline-width:.1em;*/
}
p {
line-height:1.5em;
margin-bottom:1.5em;
}
li {
line-height:1.5em;
}
ul, ol {
margin-bottom:10px;
list-style:none;
}
table {
border-collapse:collapse;
border-spacing:0;
}
caption, th, td {
text-align:left;
font-weight:normal;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content:"";
}
blockquote, q {
quotes:"" "";
}
blockquote {
margin:0;
padding:1.15em .5em 1.25em 1.5em;
color:#999;
font-family:Georgia,"Lucida bright","Times new roman",serif;
font-size:1.2em;
font-style:italic;
line-height: 1.25em;
}
blockquote * {
line-height: 1.25em;
margin-bottom:0;
}
abbr {
border-bottom: 1px dotted #633B18;
}
img {
border:none;
}
strong {
font-weight:bold;
font-style: inherit;
}
em {
font-style:italic;
font-weight:inherit;
}
.alignleft {
float:left;
margin: 0 1em 1em 0;
}
img.alignleft {
float:left;
margin-right:1em;
}
img.alignright {
float:right;
margin-left:1em;
}
img.alignright {
float:right;
margin-left:1em;
}
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}
code {
font-family:courier,"courier new", monospace;
}
pre {
display:block;
font-family:courier,"courier new", monospace;
font-size:1em;
line-height:1.5em;
background-color:#eeeeee;
padding:1.5em 1.5em;
margin-top:0em;
margin-bottom:1.5em;
overflow:auto;
}
/**
* HEADER
*/
#header {
padding: 0 1.5em;
text-align:left;
border-bottom:2px solid #AE3000;
}
#header h1, #header p.title {
color:#AE3000;
font-size:2.2em;
font-weight:bold;
font-family: Gputeks, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif;
text-align:left;
line-height:2;
/*letter-spacing: 0.1em;*/
margin:0;
}
#header h1 a, #header p.title a {
color:inherit;
text-decoration:none;
}
#header div.description {
color:#999;
text-transform:uppercase;
float:right;
margin-top: -2em;
}
/**
* MAIN NAVIGATION
*/
ul#navigation {
float:right;
margin:0;
margin-top:-2em;
}
ul#navigation li {
display: inline-block;
font-size: 2em;
font-weight:bold;
font-family: Gputeks, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Bitstream Vera Sans", "Liberation Sans", "DejaVu Sans", Verdana, "Verdana Ref", sans-serif;
margin:0;
margin-left:.5em;
line-height:1;
text-transform:lowercase;
word-spacing: -.2em;
}
ul#navigation li a {
}
ul#navigation li a:hover {
text-decoration:none;
}
/**
* First post on index page
*/
div.latest {
padding: 2em 1.5em 1.5em 1.5em;
margin-bottom:1em;
border-bottom:2px solid #AE3000;
}
div.latest h2 {
font-size: 5em;
color: #000;
line-height: 1em;
}
div.latest h2 a:link,
div.latest h2 a:visited,
div.latest h2 a:active {
color:inherit;
}
div.latest p.details_small {
margin:0;
}
div.latest div.post_content {
margin-top:1.5em;
-moz-column-count: 3;
-moz-column-gap: 1em;
-webkit-column-count: 3;
-webkit-column-gap: 1em;
column-count: 3;
column-gap: 1%;
}
div.post_content > p:first-child:first-line {
font-variant: small-caps;
font-weight:bold;
}
div.post_content > p:first-child:first-letter {
display:block;
float:left;
font-size:2.5em;
line-height: 1em;
padding:0;
margin:0;
padding-top: .2em;
margin-right: .2em;
}
div.latest img {
padding:2px;
background:#AE3000;
border:10px solid #ccc;
max-width:90%;
height: auto;
}
/**
* FIRST MAIN COLUMN
*/
#content {
margin: 1em 0px;
width:79%;
float:left;
padding-top:1.1em;
}
#content.home {
padding-top:0em;
background: none;
border:none;
}
#content.single, #content.archive {
padding-top:0em;
}
#content div.post {
margin: 0 0em 0em .5em;
padding: 0em 1em 1em 1em;
color:#000;
}
#content div.list {
margin: 0 0em 1.6em .5em;
padding: 0em 1em 0em 1em;
color:#000;
border:none;
background:none;
}
#content div.post div.more {
padding-top:.2em
}
#content h1 {
color: #000;
font-size:3em;
line-height: 1em;
margin: 0em 0em .5em .5em;
}
#content div.post h1 {
font-size:3em;
margin: 0em 0em .5em 0em;
}
#content div.list h2 {
font-size:1.4em;
line-height:1.1em;
padding-top:.1em;
margin-bottom:.3em;
}
#content div.post h2 {
margin-bottom: .5em;
}
#content div.post h3 {
margin-bottom: 0;
}
#content div.post h2,
#content div.post h3,
#content div.post h4
{
color: #000;
}
#content div.post h2 a:visited,
#content div.post h3 a:visited,
#content div.post h4 a:visited
{
color:#633B18;
}
#content div.post h2 a:hover,
#content div.post h3 a:hover,
#content div.post h4 a:hover
{
color:#AE3000;
}
#content p.tag-cloud {
margin-top:3em;
}
#content p.tag-cloud a {
color: #000;
}
#content ul, div.latest ul {
list-style-type:square;
padding-left:3em;
}
#content ol, div.latest ol {
list-style-type:decimal;
padding-left:3em;
}
#content img {
padding:2px;
background:#AE3000;
border:10px solid #ccc;
max-width:90%;
margin:10px;
}
#content img.noborder {
border:0px;
padding:0;
background: none;
}
.navigation div {
line-height:1.5em;
margin-bottom:1em;
}
.navigation .prev {
float:left;
width:40%;
}
.navigation .next {
float:right;
width:40%;
text-align:right;
}
.details_small {
font-size:1em;
color:#999;
margin:0;
}
div.list .details_small {
margin-top:-0.2em;
}
div.list p {
margin-bottom:0;
}
.details_small a {
color:#999;
text-decoration:underline;
}
p.date {
text-align:right;
font-size:1em;
color:#999;
}
span.gravatar {
display:block;
float:left;
}
span.gravatar img {
border: 5px solid #999;
}
div.column {
float:left;
}
div.left {
padding-right:0;
width:40%;
}
div.right {
padding-left:0;
padding-right:0;
width:48%;
}
/**
* COMMENTS
*/
div.comments, div.navigation {
margin-left:1.5em;
margin-right:1.5em;
width: 75%;
}
h2#comments{
margin-top:.2em;
margin-bottom:1.5em;
padding-bottom:0em;
font-weight:normal !important;
}
ol.commentlist {
list-style-type: none !important;
list-style-position: inside;
padding-left:0px !important;
margin-left:0px;
padding-bottom:.1em;
}
.commentlist li {
margin-bottom:1.5em;
padding-bottom:.5em;
padding-top:.8em;
border-top:1px solid #999;
}
.commentlist li.author {
border-top:1px solid #AE3000;
}
.commentlist li p {
margin-bottom:0em;
}
.commentlist li p.comment-data {
margin-bottom:1.5em;
}
.commentlist li p.comment-author {
font-size:1.5em;
line-height:1em;
font-family:Georgia,"Lucida bright","Times new roman",serif;
font-style:italic;
/*font-weight:bold;*/
/*font-variant:small-caps;*/
margin-bottom:0em;
}
.commentlist ul li,
.commentlist ol li {
margin-bottom:0;
padding-bottom:0;
border-bottom:0;
}
.commentlist ul {
padding-left:1.5em;
list-style-type:square;
}
.commentlist ol {
padding-left:1.5em;
/*list-style-type:lower-alpha;*/
}
p.nocomments {
padding-bottom:.5em;
border-bottom:1px solid #999;
font-weight:bold;
font-size:1.5em;
line-height:1em;
}
.allowed-tags {
display:none;
}
.commentlist li span.comment_number {
display:none;
float:right;
font-size:40px;
color: #999;
margin-top:.3em;
font-family: Verdana, Helvetica, sans-serif;
}
.commentlist li span.avatar {
display:block;
float:right;
margin:-2px 0px 0 0;
width:60px;
height:60px;
text-align:right;
}
#content .commentlist li span.avatar img.avatar {
display:block;
width:48px;
height:48px;
padding: 2px;
border: 1px solid #999 !important;
background: #eee;
}
#content .commentlist li.author span.avatar img.avatar {
border: 1px solid #AE3000 !important;
}
h2#respond {
margin-bottom:1.5em;
}
/**
* FORMS
*/
#commentform {
margin-bottom:1.5em;
padding-bottom:0em;
border-bottom:1px solid #999;
}
textarea {
width:99%;
}
/**
* RIGHT SIDEBARS
*/
.sidebar {
padding:0px;
float:right;
margin: 0.5em 0 0 0;
}
#sidebarFrame {
float:right;
padding:1em 0px;
width: 200px;
margin: 0 auto;
display: block;
}
.sidebar{
width: 98%;
margin: 0 auto;
}
.sidebar h2 {
font-size:1.3em;
line-height:1.2em;
border-bottom: 1px solid #000;
margin-bottom:.2em;
}
.sidebar ul {
margin-right:1.5em;
}
.sidebar ul li {
margin: 0;
margin-bottom:0.4em;
padding-bottom:.5em;
}
.sidebar h2 {
margin:.2em 0 -.2em 0;
border: none;
padding-bottom:.2em;
}
.sidebar ul {
margin:0 1.5em .2em 0;
padding:0 0 .5em 0;
}
.sidebar ul li {
border:1px solid #999999;
padding:1em 10px .5em 10px;
margin:0;
margin-bottom: 1em;
line-height:1.5em !important;
}
.sidebar ul li:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.sidebar ul li ul,
.sidebar ul li ul li {
border: none;
padding:0;
margin:0;
}
.sidebar img {
float:left;
margin:.3em .5em 0 0;
}
.sidebar .vcard img.photo {
border: 1px solid #999;
background: #eee;
}
.sidebar ul,
.sidebar ul li ul li,
.sidebar ul li ul li ul {
border-bottom:0;
margin:0;
padding-bottom:0;
}
.sidebar ul li ul {
font-size:.9em;
}
.sidebar ul li ul li,
.sidebar ul li ul li {
border-bottom:1px dotted #999;
line-height: 1.7em;
padding:.1em 0;
}
.sidebar ul li ul li:last-child {
border-bottom:none;
}
.sidebar ul li ul li ul {
margin-bottom:0;
padding-left:10px;
border-left:1px solid #aaa;
}
.sidebar a {
/*color: #999;*/
}
.sidebar a:hover {
/*color: #99000e;*/
}
/**
* FOOTER
*/
#footer {
padding:10px;
border-top:2px solid #AE3000;
clear:both;
text-align:left;
font-size:.9em;
}
#footer p {
margin-left:67%;
padding-left:.5em;
padding-top:1.5em;
}
#footer p:first-child {
float:left;
width:65%;
margin-left:0px;
padding-left:1em;
padding-right:0;
padding-top:1.5em;
}
ins.adsbygoogle
{
display:block !important;
margin
}
Your #content says it's width is set # 79%.
Instead of floating three containers to the left (which is causing this issue) I would put them all in another container and float it to the left:
<div class="floatme">
<div id="#container">..</div>
<div class="..">..</div>
<div class="..">..</div>
</div>
or remove the float from the top 3 and just float the comment to the right.
Try moving your HTML around a little. In particular, move the div with id "sidebarFrame" immediately after the div with id "content". When I did this in FireBug, the layout shows up as you describe it.
Your columns are not aligning because your .comments and .navigation elements are block level elements, which will not allow the .sidebarFrame to fill in the empty space. try putting those two elements inside of the left floated #content section, or wrap #content, .comments and .navigation in a left floated element.

CSS position problem for horizontal menu on Safari/Chrome of text

I have searched high and low for an answer to this - there are a few things i've tried such as removing charset UTF 8, adding clear both, ensuring all container widths are set, and so on.
Can any of you spot the problem though in the CSS and HTML below as to why when I converted this custom theme from html into Wordpress it suddenly decided that it would render the menu differently in webkit browsers? It still works fine on Firefox.
Any help would be very much appreciated so i can get some sleep again!
This is for http://silvermoths.com
This is the HTML for the header
<body>
<div id="wrapper">
<div id="header">
<div id="social">
<ul>
<li id="spotify">
<li id="myspace">
<li id="twitter">
<li id="facebook">
</ul>
<form id="email" action='http://madmimi.com/signups/subscribe/29549' method='post'>
<label for='signup_email'>Enter Email:</label>
<input id='signup_email' class="text" name='signup[email]' type='text' /><br />
<input name='commit' class='button' type='submit' value='Signup now to keep informed' />
</form>
</div><!--end of social-->
<div id="banner">
<a href="http://silvermoths.com"><img src="<?php echo(get_bloginfo('template_directory')); ?>/images/logo.png" width="468" height="189" alt="Silvermoths" class="logo" />
<h1>Silvermoths</h1>
</div><!--end of banner-->
<div id="nav">
<ul>
<?php wp_page_menu('show_home=1'); ?>
</ul>
</div><!--end of navigation-->
</div><!--end of header-->
This is the CSS:
/*
Theme Name: Silvermoths
Theme URI: http://silvermoths.com
Description: Custome theme for Silvemroths
Author: Rylan Holey
Version: 1.0
Tags: orange, social buttons, two coloumn
License:
License URI:
General comments (optional).
*/
html,body,div,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,fieldset,input,hr {margin:0; padding:0;}
h1,h2,h3,h4,h5,h6,pre,code,address,caption,cite,code,em,strong,th {font-size:1em; font-weight:normal; font-style:normal;}
ul,ol {list-style:none;}
fieldset,img,hr {border:none;}
caption,th {text-align:left;}
table {border-collapse:collapse; border-spacing:0;}
td {vertical-align:top;}
/* CSS Document */
#font-face {
font-family: 'DejaVuSerifBook';
src: url('DejaVuSerif-webfont.eot');
src: local('☺'), url('DejaVuSerif-webfont.woff') format('woff'), url('DejaVuSerif-webfont.ttf') format('truetype'), url('DejaVuSerif-webfont.svg#webfontO0VgJAHF') format('svg');
font-weight: normal;
font-style: normal;
}
#font-face {
font-family: 'TendernessRegular';
src: url('Tenderness-webfont.eot');
src: url('Tenderness-webfont.eot?iefix') format('eot'),
url('Tenderness-webfont.woff') format('woff'),
url('Tenderness-webfont.ttf') format('truetype'),
url('Tenderness-webfont.svg#webfontaYPTm82W') format('svg');
font-weight: normal;
font-style: normal;
}
body {
margin: 0;
padding: 0;
background:url('images/body_bg.jpg');
background-color:#f05323;
background-repeat:no-repeat;
background-position:center top;
font-family:Georgia, "Times New Roman", Times, serif;
width: 100%;
display: table;
}
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.wp-caption {
background-color: #f3f3f3;
border: 1px solid #ddd;
-khtml-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px; /* optional rounded corners for browsers that support it */
margin: 10px;
padding-top: 4px;
text-align: center;
}
.wp-caption img {
border: 0 none;
margin: 0;
padding: 0;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
margin: 0;
padding: 0 4px 5px;
}
#wrapper {
position:relative;
text-align:left;
width: 960px;
margin-right: auto;
margin-left:auto;
border-bottom: #e87529 solid 10px;
}
#header {
width:960px;
height:350px !important;
}
#banner{
height: 189px;
width: 468px;
}
#banner img{
border-style: none;
}
#banner h1{
float:left;
text-indent: -9999px;
}
#banner .logo {
float:left;
width:468px;
margin-top: 45px;
margin-left: 20px;
}
#description h2{
text-indent: -9999px;
}
#social{
clear:both;
width:320px;
float:right;
margin-right: 10px
}
#social li, #social a {
height:64px;
display:block;
}
#social ul {
list-style:none;
margin:15px 0 0 0;
padding:0;
}
#social li {
display:inline;
float:right;
text-align:left;
margin-left:16px;
height:64px;
width:64px;
display:block;
}
#social a:link, #social a:visited {
text-decoration: none;
border-style: none;
}
#twitter {left:0px;width:64px;}
#twitter {background:url('images/twitter_sprite.png') 0 0;}
#twitter a:hover{background: url('images/twitter_sprite.png') 0 -65px;}
#twitter a:active{background: url('images/twitter_sprite.png') 0 -130px;}
#facebook {left:0px;width:64px;}
#facebook {background:url('images/facebook_sprite.png') 0 0;}
#facebook a:hover{background: url('images/facebook_sprite.png') 0 -65px;}
#facebook a:active{background: url('images/facebook_sprite.png') 0 -130px;}
#spotify {left:0px;width:64px;}
#spotify {background:url('images/spotify_sprite.png') 0 0;}
#spotify a:hover{background: url('images/spotify_sprite.png') 0 -65px;}
#spotify a:active{background: url('images/spotify_sprite.png') 0 -130px;}
#myspace {left:0px;width:64px;}
#myspace {background:url('images/myspace_sprite.png') 0 0;}
#myspace a:hover{background: url('images/myspace_sprite.png') 0 -65px;}
#myspace a:active{background: url('images/myspace_sprite.png') 0 -130px;}
#social img
{ border-style: none;
}
form#email
{
clear:both;
width:300px;
height:102px;
float:right;
display: block;
margin-top: 29px;
margin-bottom: 29px;
text-align: center;
padding:24px 0 0 0;
background-image: url(images/content_bg.png);
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
font-size:22px;
}
label
{
color:#FFF;
}
#email .button {
margin-top:15px;
width:238px;
height:37px;
font-weight: bold;
font-size: 15px;
font-family:Arial, Sans serif;
color: white;
border: none;
background: url('images/signup_button.png') 0 0;
}
#email .button:hover {
margin-top:15px;
width:238px;
height:37px;
font-weight: bold;
font-size: 15px;
font-family:Arial, Sans serif;
color: white;
border: none;
background: url('images/signup_button.png') 0 -38px;
}
#email .button:active {
margin-top:15px;
width:238px;
height:37px;
font-weight: bold;
font-size: 15px;
font-family:Arial, Sans serif;
color: white;
border: none;
background: url('images/signup_button.png') 0 -77px;
}
#email .text {
height:30px;
}
#nav {
float:left;
clear:both;
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color: #e5e8e6;
font-size:30px;
height:70px;
width:960px;
text-align:left;
background-image: url('images/content_bg.png');
z-index:0;
}
#nav ul {
list-style:none;
margin:17px 0 0 0;
padding:0;
}
#nav li {
display:inline;
float:left;
text-align:left;
margin-left:0;
height:70px;
z-index:100;
}
#nav a:link, #nav a:visited {
padding: 15px 0.5em 15.5px 0.5em;
color: #e5e8e6;
text-decoration:none;
}
#nav a:hover {
color:#FFF;
}
#nav a:active {
color:#FFF;
font-weight:bold;
}
#sidebar {
float:right;
width:260px;
margin:15px 10px 15px 10px ;
padding:20px;
background-image: url('images/content_bg.png');
height: 100%;
}
#single img {
border:none;
background:none;
}
#content {
clear:both;
float:left;
width:580px;
margin:15px 10px 15px 10px;
padding:20px;
background-image: url('images/content_bg.png');
}
#content .post-image img {
float:left;
margin:15px 15px 15px 10px;
border-top: 1px solid #555;
padding: 10px;
background: #3c3a3a;
-webkit-box-shadow: 5px 5px 6px #242424;
-moz-box-shadow: 5px 5px 6px #242424;
box-shadow: 5px 5px 6px #242424;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#placeholder {
height:350px;
border: 1px solid #bb3e26;
margin-top:10px;
background: #FFE7CF;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#placeholder .meta {
margin: 150px 10px 0 10px;
text-align:left;
}
#placeholder h3 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color: #bb3e26;
font-size:18px;
margin-top:0;
margin-bottom:0;
font-style: italic;
}
#text {
clear:both;
}
#footer h1, #sidebar h1, #content h1 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:50px;
margin-top:0.3em;
margin-bottom:0;
font-weight:bold;
}
#sidebar h2, #content h2 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:30px;
margin-top:0;
margin-bottom:0;
font-weight:bold;
}
#sidebar h3, #content h3 {
font-family:'TendernessRegular', Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:22px;
margin-top:0;
margin-bottom:0;
font-weight:bold;
}
#sidebar h1+p, #sidebar h2+p, #content h1+p, #content h2+p, #placeholder h3+p {
margin-top:0;
}
#sidebar p, #content p {
font-family:Georgia, "Times New Roman", Times, serif;
color:#FFF;
font-size:14px;
}
#content a:link, #content a:visited {
color: #bb3e26;
text-decoration:none;
}
#content a:hover {
color:#5e1f12;
}
#post {
padding-top:0.5em;
border-bottom:2px solid #5e1f12;
height:125px;
}
#post .thumb {
float:right;
border-style:solid;
border-color:#5e1f12 ;
border-width:2px;
margin:5px 10px 2px 5px;
}
#content a:link, #content a:visited {
color: #1D4896;
text-decoration:none;
}
#content a:hover {
color:#FFF;
background-color:#3c3a3a;
}
#content .post {
border-style: none;
}
#sidebar ul {
list-style:none
}
#searchform input {
margin-left:45px
}
#footer {
clear:both;
width:920px;
height:150px;
background-color:#f05323;
font-family:Georgia, "Times New Roman", Times, serif;
color: #fff;
padding:20px;
}
#footer .copyright {
float:right;
}
Looks as though the problem is being caused by a phantom empty link within the <div class="menu"> just above the <ul>. See attached image.
It's weird because it doesn't seem to be in the source code which leads me to think it's being generated by wordpress?
If you use Chrome's developer plugin you can inspect the element to view where the link is being generated.

Resources