Fonts not changing - css

I keep trying to change different fonts to helvetica on a site for a client. I have been through and through this, and it seems like the more I change the font, the more each part seems to turn into the wrong font. I accidentally changed the title bars to a different font and now I'm stumped.
Here is the first page I was trying to change. It all started when the only thing that was not helvetica was where it says "Blog Test" here: http://dolceaquaswim.com/blog/
Now nothing is displaying as helvetica it seems. I've uploaded the font in all it's versions to the server and put them in the css with #font. Here is my/the theme's css:
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, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
border: 0;
font-size: 100%;
font: inherit;
margin: 0;
padding: 0;
vertical-align: baseline;
}
/*HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
#font-face {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
src: url('fonts/helveticaneue-webfont.eot');
src: url('fonts/helveticaneue-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/helveticaneue-webfont.woff') format('woff'),
url('fonts/helveticaneue-webfont.ttf') format('truetype'),
url('fonts/helveticaneue-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
#font-face {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
src: url('fonts/helveticaneuebd-webfont.eot');
src: url('fonts/helveticaneuebd-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/helveticaneuebd-webfont.woff') format('woff'),
url('fonts/helveticaneuebd-webfont.ttf') format('truetype'),
url('fonts/helveticaneuebd-webfont.svg') format('svg');
font-weight: bold;
font-style: bold;
}
#font-face {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
src: url('fonts/helveticaneueit-webfont.eot');
src: url('fonts/helveticaneueit-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/helveticaneueit-webfont.woff') format('woff'),
url('fonts/helveticaneueit-webfont.ttf') format('truetype'),
url('fonts/helveticaneueit-webfont.svg') format('svg');
font-weight: italic;
font-style: italic;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
button, input, select, textarea {
font-size: 100%;
overflow: visible;
margin: 0;
vertical-align: baseline;
width: auto;
}
textarea {
overflow: auto;
vertical-align: text-top;
}
/* =Horizontal Rule
-------------------------------------------------------------- */
hr {
background: #dddddd;
border: none;
clear: both;
color: #dddddd;
float: none;
height: 1px;
width: 100%;
}
hr.space {
background: #ffffff;
color: #ffffff;
}
/* =Base
-------------------------------------------------------------- */
html {
height: 100%;
}
body {
-moz-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
background: #efefef;
color: #555555;
font-family: 'Helvetica Neue' !important;
font-size: 14px;
font-smoothing: antialiased;
line-height: 1.5em;
text-rendering: optimizeLegibility;
}
/* =Typography
-------------------------------------------------------------- */
p {
word-wrap: break-word;
}
i,
em,
dfn,
cite {
font-style: italic;
}
tt,
var,
pre,
kbd,
samp,
code {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-style: normal;
}
b,
strong {
font-weight: 700;
font-size: 27px;
font-weight: 700;
font-weight: normal;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-style: normal;
}
pre {
-moz-box-sizing: border-box;
-moz-border-radius: 2px;
-moz-box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
-webkit-border-radius: 2px;
-webkit-box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
-webkit-box-sizing: border-box;
box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
background: #f4f4f4;
border: 1px solid #aaaaaa;
border-bottom-color: #cccccc;
border-radius: 2px;
height: auto;
margin: 0;
outline: none;
padding: 6px 10px;
vertical-align: middle;
width: 100%;
word-wrap: break-word;
white-space: pre-wrap;
}
del {
color: #555555;
text-decoration: line-through;
}
ins,
dfn {
border-bottom: 1px solid #cccccc;
}
sup,
sub,
small {
font-size: 85%;
}
abbr,
acronym {
font-size: 85%;
letter-spacing: .1em;
text-transform: uppercase;
}
a abbr,
a acronym {
border: none;
}
dfn[title],
abbr[title],
acronym[title] {
border-bottom: 1px solid #cccccc;
cursor: help;
}
sup {
vertical-align: super;
}
sub {
vertical-align: sub;
}
/* =Responsive 12 Column Grid
http://themeid.com/responsive-grid/
-------------------------------------------------------------- */
.grid {
float: left;
margin-bottom: 2.127659574468%;
padding-top: 0;
}
.grid-right {
float: right;
margin-bottom: 2.127659574468%;
padding-top: 0;
}
.col-60,
.col-140,
.col-220,
.col-300,
.col-380,
.col-460,
.col-540,
.col-620,
.col-700,
.col-780,
.col-860 {
display: inline;
margin-right: 2.127659574468%;
}
.col-60 {
width: 6.382978723404%;
}
.col-140 {
width: 14.893617021277%;
}
.col-220 {
width: 23.404255319149%;
}
.col-300 {
width: 31.914893617021%;
}
.col-380 {
width: 40.425531914894%;
}
.col-460 {
width: 48.936170212766%;
}
.col-540 {
width: 57.446808510638%;
}
.col-620 {
width: 65.957446808511%;
}
.col-700 {
width: 74.468085106383%;
}
.col-780 {
width: 82.978723404255%;
}
.col-860 {
width: 91.489361702128%;
}
.col-940 {
width: 100%;
}
.fit {
margin-left: 0 !important;
margin-right: 0 !important;
}
/* =Visibility
-------------------------------------------------------------- */
.hidden {
visibility: hidden;
}
.visible {
visibility: visible;
}
.none {
display: none;
}
.hide-desktop {
display: none;
}
.show-desktop {
display: block;
}
/* =Responsive Images
-------------------------------------------------------------- */
img {
-ms-interpolation-mode: bicubic;
border: 0;
height: auto;
max-width: 100%;
vertical-align: middle;
}
.ie8 img {
height: auto;
width: auto\9;
}
.ie8 img.size-large {
max-width: 60%;
width: auto;
}
/* =Responsive Videos
-------------------------------------------------------------- */
video {
width: 100%;
max-width: 100%;
height: auto;
}
/* =Responsive Embeds/Objects
-------------------------------------------------------------- */
embed,
object {
max-width: 100%;
}
svg:not(:root) {
overflow: hidden;
}
/* =Links
-------------------------------------------------------------- */
a {
color: #00CCFF;
font-weight: 400;
text-decoration: none;
}
a:hover,
a:focus,
a:active {
color: #444444;
outline: 0;
text-decoration: none;
}
::selection {
background: #999999;
color: #ffffff;
text-shadow: none;
}
/* =Forms
-------------------------------------------------------------- */
label {
display: inline-block;
font-weight: 700;
padding: 2px 0;
}
legend {
padding: 2px 5px;
}
fieldset {
border: 1px solid #cccccc;
margin: 0 0 1.5em;
padding: 1em 2em;
}
select,
input[type="text"],
input[type="password"],
input[type="email"] {
-moz-box-sizing: border-box;
-moz-border-radius: 2px;
-webkit-box-sizing: border-box;
-webkit-border-radius: 2px;
-webkit-box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
background-color: #ffffff;
box-sizing: border-box;
border: 1px solid #aaaaaa;
border-bottom-color: #cccccc;
border-radius: 2px;
cursor: text;
margin: 0;
outline: none;
padding: 6px 8px;
vertical-align: middle;
max-width: 100%;
}
select {
height: auto;
max-width: 100%;
}
area,
textarea {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-webkit-border-radius: 2px;
-webkit-box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
background-color: #ffffff;
box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
border: 1px solid #aaaaaa;
border-bottom-color: #cccccc;
border-radius: 2px;
height: auto;
overflow: auto;
margin: 0;
outline: none;
padding: 8px 10px;
max-width: 100%;
}
map area {
padding: 0px;
border: 0px;
}
input,
select {
cursor: pointer;
}
area:focus,
input:focus,
textarea:focus {
border: 1px solid #66ccff;
}
input[type='text'],
input[type='password'] {
cursor: text;
}
/* =IE Forms
-------------------------------------------------------------- */
.ie7 area,
.ie7 select,
.ie7 textarea,
.ie7 input[type="text"],
.ie7 input[type="password"],
.ie7 input[type="email"] {
width: 96%;
}
/* =IE6 Notice
-------------------------------------------------------------- */
.msie-box {
background-color: #f9edbe;
border: 1px solid #f0c36d;
color: #212121;
display: block;
margin: 0 auto;
max-width: 960px;
padding: 10px;
position: absolute;
top: 60px;
text-align: center;
width: 100%;
}
.msie-box a {
color: #212121;
}
/* =Tables
-------------------------------------------------------------- */
th,
td,
table {
border: 1px solid #dddddd;
}
table {
border-collapse: collapse;
width: 100%;
}
/* =Lists
-------------------------------------------------------------- */
ul {
list-style-type: disc;
margin: 0;
padding: 0;
}
ol {
line-height: 22px;
list-style-position: outside;
list-style-type: decimal;
margin: 0;
padding: 0;
}
dt {
font-weight: 400;
}
/* =Blockquote
-------------------------------------------------------------- */
blockquote {
background: #f9f9f9;
border: none;
border-left: 4px solid #d6d6d6;
margin: 20px;
overflow: auto;
padding: 0 0 10px 12px;
}
blockquote p {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-style: italic;
font-size: 18px;
line-height: 26px;
}
/* =Headings
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-weight: 700;
line-height: 1.0em;
word-wrap: break-word;
font-family: "Open Sans";
}
h1 {
font-size: 2.625em; /* = 42px */
margin-bottom: .5em;
margin-top: .5em;
font-family: "Open Sans";
}
h2 {
font-size: 2.250em; /* = 36px */
margin-bottom: .75em;
margin-top: .75em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
h3 {
font-size: 1.875em; /* = 30px */
margin-bottom: .857em;
margin-top: .857em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
h4 {
font-size: 1.500em; /* = 24px */
margin-bottom: 1em;
margin-top: 1em;
font-family: "Open Sans";
}
h5 {
font-size: 1.125em; /* = 18px */
margin-bottom: 1.125em;
margin-top: 1.125em;
font-family: "Open Sans";
}
h6 {
font-size: 1.000em; /* = 16px */
margin-bottom: 1.285em;
margin-top: 1.285em;
font-family: "Open Sans";
}
/* =Margins & Paddings
-------------------------------------------------------------- */
p,
hr,
dl,
pre,
form,
table,
address,
blockquote {
margin: 1.6em 0;
}
th, td {
padding: .8em;
}
caption {
padding-bottom: .8em;
}
blockquote {
padding: 0 1em;
}
blockquote:first-child {
margin: .8em 0;
}
fieldset {
margin: 1.6em 0;
padding: 0 1em 1em;
}
legend {
padding-left: .8em;
padding-right: .8em;
}
legend+* {
margin-top: 1em;
}
input,
textarea {
padding: .3em .4em .15em;
}
select {
padding: .1em .2em 0;
}
option {
padding: 0 .4em;
}
dt {
margin-bottom: .4em;
margin-top: .8em;
}
ul {
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ul,
ol {
margin: 0 1.5em 1.5em 0;
padding-left: 2.0em;
}
li ul,
li ol {
margin: 0;
}
form div {
margin-bottom: .8em;
}
/* =Globals
-------------------------------------------------------------- */
#container {
margin: 0 auto;
max-width: 960px;
padding: 0px 0px;
background: #ffffff;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
border-top: 1px solid #e4e4e4;
-webkit-box-shadow: 0px 4px 4px 0px rgba(50, 50, 50, 0.49);
-moz-box-shadow: 0px 4px 4px 0px rgba(50, 50, 50, 0.49);
box-shadow: 0px 4px 4px 0px rgba(50, 50, 50, 0.49);
}
#wrapper {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
background-color: #ffffff;
border: 1px solid #e5e5e5;
border-radius: 4px;
clear: both;
margin: 20px auto 20px auto;
padding: 0 20px 20px 20px;
position: relative;
}
.front-page #wrapper {
background-color: #ffffff;
border: none;
margin: 20px auto 20px auto;
padding: 0;
}
#header {
margin: 0;
}
#footer {
clear: both;
margin: 0 auto;
max-width: 960px;
padding: 0 25px 0 25px;
}
#footer-wrapper {
margin: 0;
padding: 0;
}
/* =Header
-------------------------------------------------------------- */
#logo {
text-align: center;
margin: 0;
}
.site-name {
display: block;
font-size: 2.063em; /* = 33px */
line-height: 1.0em;
padding-top: 20px;
font-family: "Helvetica Neue";
}
.site-name a {
color: #333333;
font-weight: 700;
font-family: "Helvetica Neue";
}
.site-description {
color: #afafaf;
display: block;
font-size: 0.875em; /* = 14px */
font-family: "Helvetica Neue";
margin: 10px 0;
}
.latestTextstory {
font-family: "Helvetica Neue";
}
.part1 {
font-family: "Helvetica Neue";
}
.part2 {
font-family: "Helvetica Neue";
}
/* =Content
-------------------------------------------------------------- */
#content {
margin-top: 40px;
margin-bottom: 20px;
}
#content-full {
margin-top: 40px;
margin-bottom: 20px;
}
#content-blog {
margin-top: 40px;
margin-bottom: 20px;
}
#content-images {
margin-bottom: 20px;
}
#content-search {
margin-bottom: 20px;
margin-top: 20px;
}
#content-archive {
margin-top: 40px;
margin-bottom: 20px;
}
#content-sitemap {
margin-top: 40px;
margin-bottom: 20px;
}
#content-sitemap a {
font-size: 12px;
}
#content .sticky {
clear: both;
}
#content .sticky p {
}
/* =Templates (Landing Page)
-------------------------------------------------------------- */
/*
.page-template-landing-page-php .menu,
.page-template-landing-page-php .top-menu,
.page-template-landing-page-php .main-nav,
.page-template-landing-page-php .footer-menu,
.page-template-landing-page-php .sub-header-menu {
display: none;
}
*/
/* =Templates (Blog Page)
-------------------------------------------------------------- */
.page-template-blog-php .menu,
.page-template-blog-php .top-menu,
.page-template-blog-php .main-nav,
.page-template-blog-php .footer-menu,
.page-template-blog-php .sub-header-menu {
display: none;
}
/* =Author Meta (Author's Box)
-------------------------------------------------------------- */
#author-meta {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
background: #f9f9f9;
border: 1px solid #d6d6d6;
border-radius: 4px;
clear: both;
display: block;
margin: 30px 0 40px 0;
padding: 10px;
overflow: hidden;
}
#author-meta img {
float: left;
padding: 10px 15px 0 5px;
}
#author-meta p {
margin: 0;
padding: 5px;
}
#author-meta .about-author {
font-weight: 700;
margin: 10px 0 0 0;
}
/* =Featured Content
-------------------------------------------------------------- */
#featured {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
background-color: #ffffff;
border: 1px solid #e5e5e5;
border-radius: 4px;
padding-bottom: 40px;
width: 99.893617021277%;
}
#featured p {
font-size: 18px;
font-weight: 200;
line-height: 27px;
padding: 0 40px 0 40px;
text-align: center;
}
#featured-image {
margin: 40px 0 0 0;
}
#featured-image .fluid-width-video-wrapper {
margin-left: -20px;
}
.featured-image img {
margin-top: 44px;
}
/* =Post
-------------------------------------------------------------- */
.comments-link {
font-size: 12px;
}
#cancel-comment-reply-link {
color: #990000;
}
.post-data {
clear: both;
font-size: 12px;
font-weight: 700;
margin-top: 20px;
}
.post-data a {
color: #111111;
}
.post-entry {
clear: both;
font-family: "Helvetica Neue";
}
.entry-title {
font-family: "Helvetica Neue";
}
.post-title {
font-family: "Helvetica Neue";
}
.post-meta {
clear: both;
color: #9f9f9f;
font-size: 12px;
margin-bottom: 10px;
}
.post-edit {
clear: both;
display: block;
font-size: 12px;
margin: 1.5em 0;
}
.post-search-terms {
clear: both;
}
.read-more {
clear: both;
font-weight: 700;
}
.attachment-entry {
clear: both;
text-align: center;
}
/* =bbPress
bbPress has its own breadcrumb lists
-------------------------------------------------------------- */
.bbPress .breadcrumb-list {
display: none;
}
/* =Symbols
-------------------------------------------------------------- */
.ellipsis {
color: #aaaaaa;
font-size: 18px;
margin-left: 5px;
}
.form-allowed-tags {
display: none;
font-size: 10px;
}
/* =Widgets
-------------------------------------------------------------- */
.widget-wrapper {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
background-color: #f9f9f9;
border: 1px solid #e5e5e5;
border-radius: 4px;
margin: 0 0 20px;
padding: 20px;
}
.widget-wrapper select,
.widget-wrapper input[type="text"],
.widget-wrapper input[type="password"],
.widget-wrapper input[type="email"] {
width: 75%;
}
#widgets {
margin-top: 40px;
}
#widgets a {
display: inline-block;
margin: 0;
padding: 0;
text-decoration: none;
}
#widgets form {
margin: 0;
}
#widgets ul,
#widgets ol {
padding: 0 0 0 20px;
}
#widgets ul li a {
display: inline;
text-decoration: none;
}
#widgets .widget-title img {
float: right;
height: 11px;
position: relative;
top: 4px;
width: 11px;
}
#widgets .rss-date {
line-height: 18px;
padding: 6px 12px;
}
#widgets .rssSummary {
padding: 10px;
}
#widgets cite {
font-style: normal;
line-height: 18px;
padding: 6px 12px;
}
#widgets .tagcloud,
#widgets .textwidget {
display: block;
line-height: 1.5em;
margin: 0;
word-wrap: break-word;
}
#widgets .textwidget a {
display: inline;
}
#widgets ul .children {
padding: 0 0 0 10px;
}
#widgets .author {
font-weight: 700;
padding-top: 4px;
}
.widget_archive select, #cat {
display: block;
margin: 0 15px 0 0;
}
#colophon-widget ul {
}
.colophon-widget {
background: none;
min-height: 0;
}
.colophon-widget select,
.colophon-widget input[type="text"],
.colophon-widget input[type="password"],
.colophon-widget input[type="email"] {
width: 100%;
}
#top-widget {
}
.top-widget {
background: none;
border: none;
clear: right;
float: right;
min-height: 0;
padding: 0 3px 0 0;
text-align: right;
width: 45%;
}
.top-widget ul {
padding: 0;
}
.top-widget select,
.top-widget input[type="text"],
.top-widget input[type="password"],
.top-widget input[type="email"] {
width: auto;
}
.top-widget #searchform {
margin: 0;
}
/* =Titles
-------------------------------------------------------------- */
.featured-title {
font-size: 60px;
letter-spacing: -1px;
margin: 0;
padding-top: 40px;
text-align: center;
font-family: "Helvetica Neue";
}
.featured-subtitle {
padding: 0 10px;
text-align: center;
font-family: "Helvetica Neue";
}
.widget-title h3,
.widget-title-home h3 {
display: block;
font-size: 16px;
font-weight: 700;
line-height: 18px;
margin: 0;
padding: 0 0 20px 0;
text-align: left;
font-family: "Helvetica Neue";
}
.top-widget .widget-title h3 {
font-size: 14px;
padding: 0;
text-align: right;
font-family: "Helvetica Neue";
}
.widget-title a {
border-bottom: none;
padding: 0 !important;
font-family: "Helvetica Neue";
}
.title-404 {
color: #993333;
}
/* =404 Page
-------------------------------------------------------------- */
.error404 select,
.error404 input[type="text"],
.error404 input[type="password"],
.error404 input[type="email"] {
width: auto;
}
/* =Top Menu
-------------------------------------------------------------- */
.top-menu {
float: right;
margin: 10px 0;
padding: 0;
}
.top-menu li {
display: inline;
list-style-type: none;
}
.top-menu li a {
border-left: 1px solid #cccccc;
color: #333333;
font-size: 11px;
padding: 0 4px 0 8px;
}
.top-menu > li:first-child > a {
border-left: none;
}
.top-menu li a:hover {
color: #333333;
}

What both Jack and rgdesign are right on. You can see that the #font-face rule is used to name a font or give it an ID and define it's location. From the looks of it, it seems like your trying to edit something that was already made. The problem is I can't see where you are actually referencing the font for the locations you want to change. For CSS changes and to avoid bloating your css files I would recommend using a tool like firebug to look at the css on the site and make changes that you can verify work.
Checking your site, it looks like you are defining Open-Sans for your headings.
h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-family: "Open-Sans";
font-weight: 700;
letter-spacing: 1px;
line-height: 1em;
word-wrap: break-word;
}
You need to change the font here by defining the font-family to Helvetica Neue and continue to do that for each section you want to change.
h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;
font-weight: 700;
letter-spacing: 1px;
line-height: 1em;
word-wrap: break-word;
}

Related

how to set page/document margins with css when generating pdf from mkd via pandoc&wkhtmltopdf?

I have this script
#!/usr/bin/env bash
set -euxo pipefail
MARGIN=.35in
pandoc -t html5 -V margin-top=$MARGIN -V margin-left=$MARGIN -V margin-bottom=$MARGIN -V margin-right=$MARGIN -V papersize=letter --css ~/bin/inc/pandoc-pdf.css $1 -o $2 -s --pdf-engine=wkhtmltopdf
which nicely generates a pdf file from a markdown file...
but what's not nice is that I'm setting the MARGIN manually via commandline parameter since I couldn't get the css to do it :/
In addition to fussing endlessly over the css I've tried using alternate pandoc templates (my guessing attempts with those templates don't feel worth sharing, I'm just using pandoc's default html template). The CSS looks like:
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
color: #444;
font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
font-size: 12px;
line-height: 1.7;
padding: 0;
margin: auto;
max-width: 32em;
background: #fefefe;
}
a {
color: #0645ad;
text-decoration: none;
}
a:visited {
color: #0b0080;
}
a:hover {
color: #06e;
}
a:active {
color: #faa700;
}
a:focus {
outline: thin dotted;
}
*::-moz-selection {
background: rgba(255, 255, 0, 0.3);
color: #000;
}
*::selection {
background: rgba(255, 255, 0, 0.3);
color: #000;
}
a::-moz-selection {
background: rgba(255, 255, 0, 0.3);
color: #0645ad;
}
a::selection {
background: rgba(255, 255, 0, 0.3);
color: #0645ad;
}
p {
margin: 1em 0;
}
img {
max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
color: #111;
line-height: 125%;
margin-top: 2em;
font-weight: normal;
}
h4, h5, h6 {
font-weight: bold;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.2em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.9em;
}
blockquote {
color: #666666;
margin: 0;
padding-left: 3em;
border-left: 0.5em #EEE solid;
}
hr {
display: block;
height: 2px;
border: 0;
border-top: 1px solid #aaa;
border-bottom: 1px solid #eee;
margin: 1em 0;
padding: 0;
}
pre, code, kbd, samp {
color: #000;
font-family: monospace, monospace;
_font-family: 'courier new', monospace;
font-size: 0.98em;
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
b, strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
ins {
background: #ff9;
color: #000;
text-decoration: none;
}
mark {
background: #ff0;
color: #000;
font-style: italic;
font-weight: bold;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
ul, ol {
margin: 1em 0;
padding: 0 0 0 2em;
}
li p:last-child {
margin-bottom: 0;
}
ul ul, ol ol {
margin: .3em 0;
}
dl {
margin-bottom: 1em;
}
dt {
font-weight: bold;
margin-bottom: .8em;
}
dd {
margin: 0 0 .8em 2em;
}
dd:last-child {
margin-bottom: 0;
}
img {
border: 0;
-ms-interpolation-mode: bicubic;
vertical-align: middle;
}
figure {
display: block;
text-align: center;
margin: 1em 0;
}
figure img {
border: none;
margin: 0 auto;
}
figcaption {
font-size: 0.8em;
font-style: italic;
margin: 0 0 .8em;
}
table {
margin-bottom: 2em;
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
border-spacing: 0;
border-collapse: collapse;
}
table th {
padding: .2em 1em;
background-color: #eee;
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
}
table td {
padding: .2em 1em;
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
vertical-align: top;
}
.author {
font-size: 1.2em;
text-align: center;
}
#media only screen and (min-width: 480px) {
body {
font-size: 14px;
}
}
#media only screen and (min-width: 768px) {
body {
font-size: 16px;
}
}
#media print {
* {
background: transparent !important;
color: black !important;
filter: none !important;
-ms-filter: none !important;
}
body {
font-size: 12pt;
max-width: 100%;
margin: 1em;
margin-top: 1em !important;
}
a, a:visited {
text-decoration: underline;
}
hr {
height: 1px;
border: 0;
border-bottom: 1px solid black;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
content: "";
}
pre, blockquote {
border: 1px solid #999;
padding-right: 1em;
page-break-inside: avoid;
}
tr, img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
#page :left {
margin: 35mm 35mm 35mm 35mm;
}
#page :right {
margin: 35mm 35mm 35mm 35mm;
}
p, h2, h3 {
orphans: 3;
widows: 3;
}
h2, h3 {
page-break-after: avoid;
}
}
What can I do with CSS to avoid setting MARGIN via commandline parameter?
The margin-left etc. options are just forwarded to the corresponding ones in wkhtmltopdf. But you can also set them as part of the YAML metadata:
---
margin-left: 5in
---
# hi
Some CSS to PDF processors also support this CSS, but I don't think wkhtmltopdf is among them:
#page {
size: A4;
margin: 27mm 16mm 27mm 16mm;
}
I'm just using pandoc's default html template
I don't think so, as there was no such thing until pandoc 2.11 (which was released today). Have a look at the manual's variables for HTML section.

Sub Menu Sensitive In Chrome But Fine In Firefox

I'm only a year in to Web Design. I've been learning menus at Lynda.com and specifically have a problem creating a sub menu.
I've made the sub menu how I want it, however when I flick between the list items on my menu they change over too quickly.
See on the picture below:
http://s22.postimg.org/699f35hm9/macca_travel.png
If you look at the position of the cursor, it is still on the 'About' tab, but the 'Blog' hover has lit up and has been selected.
The two sections with sub menus are the 'Blog' tab and the 'Photos' tab. These two tabs don't cross over smoothly and I think it's because for whatever reason they're selecting too quickly.
I don't know why :)
Here is my CSS:
#font-face {
font-family: 'telegraficoregular';
src: url('../FONTS/telegrafico-webfont.eot');
src: url('../FONTS/telegrafico-webfont.eot?#iefix') format('embedded-opentype'),
url('../FONTS/telegrafico-webfont.woff2') format('woff2'),
url('../FONTS/telegrafico-webfont.woff') format('woff'),
url('../FONTS/telegrafico-webfont.ttf') format('truetype'),
url('../FONTS/telegrafico-webfont.svg#telegraficoregular') format('svg');
font-weight: normal;
font-style: normal;
}
.cf:after {
content: "";
display: table;
clear: both;
}
html, body, head, nav, article, aside, section, h3, h4, footer, ul, li {
margin: 0;
padding: 0;
}
/*Global Styles*/
html {
background: white;
margin: 0;
padding: 0;
}
body {
width: 100%;
height: 1200px;
margin: 0 auto;
padding: 0;
background: white;
font-family: serif, arial, helvetica, georgia;
font-size: 16px;
color: black;
}
h1 {
font-family: telegraficoregular;
font-size: 3em;
color: white;
padding: 0;
margin:0;
text-align: center;
}
h2 {
font-family: telegraficoregular;
font-size: 1em;
font-style: italic;
color: white;
padding: 0;
margin: 0;
text-align: center;
}
p {
font-family: serif;
font-size: 1.1em;
color: black;
text-align:left;
padding-left:70px;
}
h4 + p {
font-family: serif;
font-size: 1.1em;
color: black;
text-align:left;
padding-left:70px;
padding-top: 10px;
}
/*Nav Styles */
header {
background:#6593b5;
width: 100%;
height: 160px;
margin:0 auto;
}
nav {
background: black;
height: 2em;
}
nav ul li {
float: left;
}
nav ul li a {
display: block;
padding:0 2em;
line-height: 2em;
color: white;
font-family: telegraficoregular;
text-decoration: none;
}
li, ul {
position: relative;
margin: 0;
padding: 0;
}
ul.SubMenu {
float: none;
width: auto;
height: auto;
list-style: none;
background: black;
color: white;
position: absolute;
left: -9000em;
}
ul.SubMenu li{
float: none;
}
ul.SubMenu li a{
display:block;
border-bottom: 1px solid white;
padding: .2em 2em;
white-space: nowrap;
}
li:hover ul {
left: 0;
}
li:hover ul {
left: 0;
}
/* Article Styles */
article {
width: 896px;
padding: 32px;
}
/*Section Styles */
section.China {
text-align: center;
margin: 80px auto;
padding: 20px;
}
section h3 {
font-family: telegraficoregular;
font-size: 2em;
border-bottom: 1px solid black;
padding: 5px;
}
section h4 {
font-family: telegraficoregular;
font-size: 1.4em;
padding-top: 60px;
padding-left: 70px;
text-align: left;
text-decoration: underline;
}
section.China img {
position: relative;
top: 20px;
border-radius: 5px;
}
section.Australia {
text-align: center;
margin: 20px auto;
padding: 20px;
}
section.Australia img {
position: relative;
top: 20px;
border-radius: 5px;
}
section.Thailand {
text-align: center;
margin: 20px auto;
padding: 20px;
}
section.Thailand img {
position: relative;
top: 20px;
border-radius: 5px;
}
/* Link Styles*/
a:hover {
color: orange;
height: 32px;
background: black;
}
ul.SubMenu li a:hover {
background: orange;
color: white;
}
/* About Styles */
#AboutContent{
width: 960px;
height: 1200px;
margin: 0 auto;
padding: 0;
background: white;
font-family: serif, arial, helvetica, georgia;
font-size: 16px;
color: black;
}
#AboutHeader {
text-align: center;
margin: 20px auto;
padding: 20px;
}
#AboutHeader img {
display: block;
margin: 0 auto;
text-align: center;
}
#AboutHeader h2 {
font-family: telegraficoregular;
font-size: 1.5em;
text-decoration: underline;
color: black;
padding: 0;
margin-top: 20px;
text-align: center;
}
h2 + img {
position: relative;
top: 50px;
border-radius: 5px;
}
#AboutHeader p {
font-family: serif;
font-size: 1.1em;
color: black;
text-align:left;
padding:50px 0 0 100px;
}
/*Photos Content */
#PhotoContent{
width: 960px;
height:auto;
margin: 0 auto;
padding: 0;
background: white;
font-family: serif, arial, helvetica, georgia;
font-size: 16px;
color: black;
}
/* Photos Gallery */
#ChinaPhotos {
width: 960px;
height:1200px;
margin: 0 auto;
padding: 0;
background: white;
font-family: serif, arial, helvetica, georgia;
font-size: 16px;
color: black;
}
#ChinaPhotos h3 {
font-family: telegraficoregular;
font-size: 2em;
border-bottom: 1px solid black;
padding: 5px;
text-align: center;
margin-top: 20px;
}
#ChinaPhotos img {
margin-top: 20px;
border: 1px solid black;
}
#ChinaPhotos a .Thumb:hover {
width: 320px;
height: 240px;
}
/* Container Styles */
#Content {
width: 960px;
height: auto;
margin: 0 auto;
padding: 0;
background: white;
font-family: serif, arial, helvetica, georgia;
font-size: 16px;
color: black;
}
/* Footer Styles */
.Footer {
width: 100%;
height: 160px;
background: black;
}
.Footer p {
font-family: telegraficoregular;
color: white;
font-style: italic;
line-height: 160px;
text-align: center;
}
Thanks Joe
Add the following to each section of your CSS:
ul.SubMenu {
margin-top: 2em;
}
nav ul li a {
float: left;
}
nav ul li {
display: block;
}

How to change font size?

How to change font size for my SMF forum theme? I see percentages which change only some parts of the text, can't find where to change post font, thread font etc...
Please just point me in the right direction, also what does xx%/yy% mean in regards to the font?
/* SMFSimple.com Theme Style */
body
{
background: url(../images/theme/bg.png) #f8f8f8;
font: 78%/130% 'Oxygen',sans-serif;
padding: 0px;
}
a:link, a:visited {color: #4D4D4D;}
a.new_win:link, a.new_win:visited {color: #4D4D4D;}
input, button, select, textarea
{
font: 95%/115% 'Oxygen',sans-serif;
color: #000;
background: #fff;
border: 1px solid #7f9db9;
}
textarea
{
font: 100%/130% 'Oxygen',sans-serif;
}
.smalltext, tr.smalltext th
{
font-size: 0.85em;
font-family: 'Oxygen',sans-serif;
}
.middletext
{
font-size: 0.9em;
line-height: 1em;
font-family: 'Oxygen',sans-serif;
}
.normaltext
{
font-size: 1em;
line-height: 1.2em;
}
.largetext
{
font-size: 1.4em;
}
code.bbc_code
{
display: block;
font-family: 'Oxygen',sans-serif;
font-size: x-small;
background: #eef;
border-top: 2px solid #999;
border-bottom: 2px solid #999;
line-height: 1.5em;
padding: 3px 1em;
overflow: auto;
white-space: nowrap;
/* Show a scrollbar after about 24 lines. */
max-height: 24em;
}
.bbc_tt
{
font-family: 'Oxygen',sans-serif;
}
#font-face {
font-family: 'Oxygen';
font-style: normal;
font-weight: 400;
src: local('Oxygen'), local('OpenSans'), url(../fonttheme.woff) format('woff');
}
#full_header
{
margin: 0 auto;
min-width: 764px;
max-width: 2300px;
}
#bar_social
{
background: rgba(255, 255, 255, 0.7);
height: 50px;
border: 1px solid #e8e8e8;
}
.ss_content_header
{
clear: both;
overflow: hidden;
width: 100%;
padding: 20px 0px;
padding: 20px 0px;
}
.ss_logo
{
width: 48%;
float: left;
margin-top: 10px;
padding-left: 20px;
}
.ss_user_area
{
width: 48%;
float: left;
margin-top: 15px;
}
.table_user
{
border-radius: 5px;
background: rgba(00, 00, 00, 0.7);
padding: 0px 10px;
font-size: 12px;
border: 1px solid #333;
text-shadow: 0px 1px 1px #666;
}
.user
{
color: #f4f4f4;
}
.user a
{
color: #F9BC06;
}
.ss_avatar_pad
{
padding-right: 15px;
}
This line:
font: 78%/130% 'Oxygen',sans-serif;
breaks down to:
font-size: 78%;
line-height: 130%;
font-family: 'Oxygen', sans-serif;
If no font size is given explicitly, the browser's default value is used, which is actually 16px.

grey line on top of my visual studio website

I'm currently working on a website.. I've check the css but I can't seem to figure out why this grey line keeps on showing on top of my Visual Studio website website... I'm using the default Site.css present when creating a asp.net website... please help....
my css:
/* DEFAULTS
----------------------------------------------------------*/
body
{
background: #b6b7bc;
font-size: .80em;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
padding: 0px;
color: #696969;
}
a:link, a:visited
{
color: #034af3;
}
a:hover
{
color: #1d60ff;
text-decoration: none;
}
a:active
{
color: #034af3;
}
p
{
margin-bottom: 10px;
line-height: 1.6em;
}
/* HEADINGS
----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6
{
font-size: 1.5em;
color: #666666;
font-variant: small-caps;
text-transform: none;
font-weight: 200;
margin-bottom: 0px;
}
h1
{
font-size: 1.6em;
padding-bottom: 0px;
margin-bottom: 0px;
}
h2
{
font-size: 1.5em;
font-weight: 600;
}
h3
{
font-size: 1.2em;
}
h4
{
font-size: 1.1em;
}
h5, h6
{
font-size: 1em;
}
/* this rule styles <h1> and <h2> tags that are the
first child of the left and right table columns */
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
margin-top: 0px;
}
/* PRIMARY LAYOUT ELEMENTS
----------------------------------------------------------*/
.page
{
width: 960px;
background-color: #fff;
margin: 20px auto 0px auto;
border: 1px solid #496077;
}
.header
{
position: relative;
margin: 0px;
padding: 0px;
background: #4b6c9e;
width: 100%;
}
.header h1
{
font-weight: 700;
margin: 0px;
padding: 0px 0px 0px 20px;
color: #f9f9f9;
border: none;
line-height: 2em;
font-size: 2em;
}
.main
{
padding: 0px 12px;
margin: 12px 8px 8px 8px;
min-height: 420px;
}
.leftCol
{
padding: 6px 0px;
margin: 12px 8px 8px 8px;
width: 200px;
min-height: 200px;
}
.footer
{
color: #4e5766;
padding: 8px 0px 0px 0px;
margin: 0px auto;
text-align: center;
line-height: normal;
}
/* TAB MENU
----------------------------------------------------------*/
div.hideSkiplink
{
background-color:#3a4f63;
width:100%;
}
div.menu
{
padding: 4px 0px 4px 8px;
}
div.menu ul
{
list-style: none;
margin: 0px;
padding: 0px;
width: auto;
}
div.menu ul li a, div.menu ul li a:visited
{
background-color: #465c71;
border: 1px #4e667d solid;
color: #dde4ec;
display: block;
line-height: 1.35em;
padding: 4px 20px;
text-decoration: none;
white-space: nowrap;
}
div.menu ul li a:hover
{
background-color: #bfcbd6;
color: #465c71;
text-decoration: none;
}
div.menu ul li a:active
{
background-color: #465c71;
color: #cfdbe6;
text-decoration: none;
}
/* FORM ELEMENTS
----------------------------------------------------------*/
fieldset
{
margin: 1em 0px;
padding: 1em;
border: 1px solid #ccc;
}
fieldset p
{
margin: 2px 12px 10px 10px;
}
fieldset.login label, fieldset.register label, fieldset.changePassword label
{
display: block;
}
fieldset label.inline
{
display: inline;
}
legend
{
font-size: 1.1em;
font-weight: 600;
padding: 2px 4px 8px 4px;
}
input.textEntry
{
width: 320px;
border: 1px solid #ccc;
}
input.passwordEntry
{
width: 320px;
border: 1px solid #ccc;
}
div.accountInfo
{
width: 42%;
}
/* MISC
----------------------------------------------------------*/
.clear
{
clear: both;
}
.title
{
display: block;
float: left;
text-align: left;
width: auto;
}
.loginDisplay
{
font-size: 1.1em;
display: block;
text-align: right;
padding: 10px;
color: White;
}
.loginDisplay a:link
{
color: white;
}
.loginDisplay a:visited
{
color: white;
}
.loginDisplay a:hover
{
color: white;
}
.failureNotification
{
font-size: 1.2em;
color: Red;
}
.bold
{
font-weight: bold;
}
.submitButton
{
text-align: right;
padding-right: 10px;
}
(This is based on Blender's answer, I will delete this if Blender will post his answer)
In order to be formal and to have an answer to this question, as what Blender suggested change
margin: 20px auto 0px auto;
to
margin: 0px auto 0px auto;
This solved the issue according to the one who asked the question.

a bug in IE7 - body -direction:rtl

When I set the body element direction to rtl, in IE7 (compatability view in IE8), and hover over ul li, it shifts weirdly to the left by a couple of inches. A good example for this is the default ASP.NET MVC CSS (after adding direction:rtl to the body element). What is happening here?
The example code:
/*----------------------------------------------------------
The base color for this template is #5c87b2. If you'd like
to use a different color start by replacing all instances of
#5c87b2 with your new color.
----------------------------------------------------------*/
body
{
background-color: #5c87b2;
font-size: .75em;
font-family: Verdana, Helvetica, Sans-Serif;
margin: 0;
padding: 0;
color: #696969;
direction:rtl;
}
a:link
{
color: #034af3;
text-decoration: underline;
}
a:visited
{
color: #505abc;
}
a:hover
{
color: #1d60ff;
text-decoration: none;
}
a:active
{
color: #12eb87;
}
p, ul
{
margin-bottom: 20px;
line-height: 1.6em;
}
/* HEADINGS
----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6
{
font-size: 1.5em;
color: #000;
font-family: Arial, Helvetica, sans-serif;
}
h1
{
font-size: 2em;
padding-bottom: 0;
margin-bottom: 0;
}
h2
{
padding: 0 0 10px 0;
}
h3
{
font-size: 1.2em;
}
h4
{
font-size: 1.1em;
}
h5, h6
{
font-size: 1em;
}
/* this rule styles <h2> tags that are the
first child of the left and right table columns */
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
margin-top: 0;
}
/* PRIMARY LAYOUT ELEMENTS
----------------------------------------------------------*/
/* you can specify a greater or lesser percentage for the
page width. Or, you can specify an exact pixel width. */
.page
{
width: 90%;
margin-left: auto;
margin-right: auto;
}
#header
{
position: relative;
margin-bottom: 0px;
color: #000;
padding: 0;
}
#header h1
{
font-weight: bold;
padding: 5px 0;
margin: 0;
color: #fff;
border: none;
line-height: 2em;
font-family: Arial, Helvetica, sans-serif;
font-size: 32px !important;
}
#main
{
padding: 30px 30px 15px 30px;
background-color: #fff;
margin-bottom: 30px;
_height: 1px; /* only IE6 applies CSS properties starting with an underscrore */
}
#footer
{
color: #999;
padding: 10px 0;
text-align: center;
line-height: normal;
margin: 0;
font-size: .9em;
}
/* TAB MENU
----------------------------------------------------------*/
ul#menu
{
border-bottom: 1px #5C87B2 solid;
padding: 0 0 2px;
position: relative;
margin: 0;
text-align: right;
}
ul#menu li
{
display: inline;
list-style: none;
}
ul#menu li#greeting
{
padding: 10px 20px;
font-weight: bold;
text-decoration: none;
line-height: 2.8em;
color: #fff;
}
ul#menu li a
{
padding: 10px 20px;
font-weight: bold;
text-decoration: none;
line-height: 2.8em;
background-color: #e8eef4;
color: #034af3;
}
ul#menu li a:hover
{
background-color: #fff;
text-decoration: none;
}
ul#menu li a:active
{
background-color: #a6e2a6;
text-decoration: none;
}
ul#menu li.selected a
{
background-color: #fff;
color: #000;
}
/* FORM LAYOUT ELEMENTS
----------------------------------------------------------*/
fieldset
{
margin: 1em 0;
padding: 1em;
border: 1px solid #CCC;
}
fieldset p
{
margin: 2px 12px 10px 10px;
}
fieldset label
{
display: block;
}
fieldset label.inline
{
display: inline;
}
legend
{
font-size: 1.1em;
font-weight: 600;
padding: 2px 4px 8px 4px;
}
input[type="text"]
{
width: 200px;
border: 1px solid #CCC;
}
input[type="password"]
{
width: 200px;
border: 1px solid #CCC;
}
/* TABLE
----------------------------------------------------------*/
table
{
border: solid 1px #e8eef4;
border-collapse: collapse;
}
table td
{
padding: 5px;
border: solid 1px #e8eef4;
}
table th
{
padding: 6px 5px;
text-align: left;
background-color: #e8eef4;
border: solid 1px #e8eef4;
}
/* MISC
----------------------------------------------------------*/
.clear
{
clear: both;
}
.error
{
color:Red;
}
#menucontainer
{
margin-top:40px;
}
div#title
{
display:block;
float:left;
text-align:left;
}
#logindisplay
{
font-size:1.1em;
display:block;
text-align:right;
margin:10px;
color:White;
}
#logindisplay a:link
{
color: white;
text-decoration: underline;
}
#logindisplay a:visited
{
color: white;
text-decoration: underline;
}
#logindisplay a:hover
{
color: white;
text-decoration: none;
}
.field-validation-error
{
color: #ff0000;
}
.input-validation-error
{
border: 1px solid #ff0000;
background-color: #ffeeee;
}
.validation-summary-errors
{
font-weight: bold;
color: #ff0000;
}
I've seen lots of issues with RTL pages in all versions of IE. Recommended practice is to set the RTL direction on the HTML tage and not use the CSS direction property.
<html dir="rtl">
It's worth trying this to start with to see if the behaviour changes. Also makes sure that the page is rendering in standards mode so that you get more consistent results overall.

Resources