Add the following to the head section of your HTML:
1 |
<meta name="theme-color" content="#ff6600" /> |
Read more
Add the following to the head section of your HTML:
1 |
<meta name="theme-color" content="#ff6600" /> |
Read more
Most website menus are made with some kind of a <ul> <li> structure variation. Usually they also have a mobile mode (hamburger) that comes into
Read moreA great library for animating object appearance when scrolling to them: https://github.com/michalsnik/aos Important note – if the page has changed in its length (i.e. opening/closing
Read moreThis is possible to trigger css rules for an hover on one element that will affect another. One example for this is hovering over a
Read moreMany times we want to have an image or a banner with some text on it. The most simple solution is to embed the text
Read moreSometimes you want to use chrome’s developer tools to inspect an element which is changing. In my case I had a slider that was moving
Read moreI would always prefer to avoid using an iframe, but sometimes it is the easy / only way out of a technical mess. If the
Read moreInstall ruby using an installer downloaded from their website. Install Sass: “gem install sass” in the command prompt (cmd). install compass “gem install compass” in the
Read moreWe have hundreds of posts on our company blog and our theme converts all the titles to uppercase letters. Lately we had one post the
Read moreSelector start with dot .class_name signifies class name Two doted selector separated by space .outside .inside means element with .inside class descended from an element
Read moreI had a narrow sidebar with a bunch of links that I wanted to format with bullets. This was done with the :before pseudo-element. The
Read moreUsing media queries we can change background images. In order to change and actual image (not background) we need javascript, so just use a div
Read morecalc is used to performs a calculation to be used as the property value. If we want an element to have a the full width
Read moreItems in HTML with links have a dotted outline when using keyboard navigation or when dragging an item with the mouse. To remove there is
Read moreIn order to search in all local sources (html,js) open the developers tools (F12), press Ctrl+Shift+F and search for whatever you need. Note that there
Read moreWhen including the CSS or JavaScript files add a parameter to the end of the file:
1 |
<link rel="stylesheet" type="text/css" href="style.css?version=4122005" /> |
If there’s a need to force refresh constantly
Read moreIf you wish to have a stylish separator with some kind of an ornament in its middle, use:
1 2 3 4 5 6 7 8 9 10 |
/* hr separator with ornament*/ hr:after { background: url('images/hrOrnament.gif') no-repeat top center; content: ""; display: block; height: 26px; /* height of the ornament */ position: relative; top: -14px; /* half the height of the ornament */ } |
A background (usually an image) can be positioned very precisely with “background-position”. This property can have many values and it is not affected by the
Read moreLet’s say we have two divs side by side, each taking 50% of the width. We want to use padding in order to style the
Read moreThe simplest solution:
1 2 3 4 |
<a ..> <div> </div> </a> |
The thing is that if there are other links inside the div, then it will not work and a different solution
Read moreI have already made a post on CSS advanced techniques, but this time a short and simple overview: Using a comma between css selectors is
Read moreThis is done to prevent double/triple submission and notify the visitor that everything is taken care of: form – create a hidden animation div below
Read more@media (min-width: 1200px){css attributes}@media (max-width: 1199px) and (min-width: 981px){css attributes}@media (max-width: 980px) and (min-width: 641px){css attributes}@media (max-width: 640px) and (min-width: 481px){css attributes}@media (max-width: 480px) and
Read morehttp://ryanfait.com/resources/footer-stick-to-bottom-of-page/ When logged in to wordpress the top bar for the editor messes the height of the page so it looks like the is an
Read moreDo not specify image height and width. Add to image: Style=”max-width: 100%; height: auto;” That’s it
Read moreThe display property specifies if/how an element is displayed, and the visibility property specifies if an element should be visible or hidden. Box 1 Box
Read moreWhen working with CSS files – remember: Type Selector Select elements by their type A Selects all elements of type A. Type refers to the
Read moreIt means, essentially, what it says; that ‘this is important, ignore subsequent rules, and any usual specificity issues, apply this rule!’ In normal use a
Read moreCode: <style> table td, table th, table tr{ padding:0px;border:0px; } </style> <table cellspacing=”0″ cellpadding=”0″ > <tr><td background=”/ogdan/wp-content/uploads/2014/bg-images/top-left.gif” width=”45″ height=”38″></td><td background=”/ogdan/wp-content/uploads/2014/bg-images/top-center.gif”></td><td background=”/ogdan/wp-content/uploads/2014/bg-images/top-right.gif” width=”45″ height=”38″></td></tr> <tr><td background=”/ogdan/wp-content/uploads/2014/bg-images/middle-left.gif”></td><td
Read moreDefinition and Usage The content property is used with the :before and :after pseudo-elements, to insert generated content. Example The following example inserts the URL
Read more