background preloader

HTML CSS and stuff...

Facebook Twitter

Responsive IFRAMEs — The Right Way (CSS Only)! | Ben Marshall. Master cross-browser compliant, responsive iframes using the aspect-ratio property in CSS. Learn this with one code line. If you’re in a rush and want to quickly grasp how to create responsive iframes using the CSS aspect-ratio property, you’ve come to the right place. Here’s a straightforward code example to get you started: Easy peasy & native! Crafting responsive iframes using aspect-ratio is a breeze, and the best part? It’s supported in all major browsers. Hey there, code wranglers! History of Responsive iframes Since the inception of iframes, developers have been wrestling with the challenge of making them responsive — when a solution was found, it often wasn’t cross-browser compliant.

Late 90s – Early 2000s: Fixed Size iframes In the late 90s and early 2000s, a period often referred to as the dawn of the internet, iframes were predominantly fixed in size, offering little flexibility. Mid 2000s: Percent-Based iframes Late 2000s – Early 2010s: JS-Based Solutions What is aspect ratio? Vesnice v HTML5 a CSS3. Guide FAQ: How do I create a tabbed box? I want to create a box that has tabs within the box. Creating a tabbed box (image below) involves a few steps and some HTML basics. Steps: Copy/Paste the following code into Rich Text Box Type > using Plain Text Editor.

Note: You will be doing all editing inside the Plain-Text Editor. Code: <! <div id="tabs"><ul><! <! 2. 3. Example: <div id="tabs" style="width:490px;"> 4. Add another <li> tag after the third tab.Example: <li><a href="#tabs-4">My Fourth Tab</a></li>Add another <div> tag after the fourth <div>Example: <div id="tabs-4"><p>Insert content for fourth tab here. 5. <div id="tabs"><ul><!

6. Voila! For steps on adding your Tabbed Box to your LibGuides Homepage check out this Guide. You will paste this code at the top of the Plain-Text Editor, before the first line of code: <! Code: li.ui-tabs-active: selected tab;.ui-tabs-anchor: all other tabs Note: Change the colors to whatever value you'd like! Steps: 1. One for the Selected TabAnother for the Unselected Tabs 2. 3. 4. 5. 1. Where: 2. <! <! Updated : Pure CSS Tab Menu. When I was browsing about CSS pseudo-selector, I found a similar post to Pure CSS Tab Menu I wrote for the previous post. The article written by Paul Hayes discusses how to make an accordion only with CSS. The implementation is able to run the script automatically from the start. I mean, it shows one of the accordion’s content as a default so you don’t have to wait until you click one of the accordion in order to see the content (thing that hasn’t done yet for our Pure CSS Tab Menu, aufklarung!

Paul Hayes used pseudo-selector :target to get the things done. The :target itself reads the section that is being selected. For example, look at the following structure: <div class="menu"> <p id="one"> content </p><div class="ads-inside"> <script type="text/javascript"><! With the url : So we can access or add a stylesheet to the element we are choosing (in this case we use element p with id one) this way: .menu :target { /* add some style */ } CSS3 Pictogram Button. If you follow my previous post about how to use pictogram for replacing image you must be familiar with this freebie I want to share.

This is a set of 43 button with three different styles and six different colors and using entypo pictogram for replacing the images. Go through the post to see the entire sets. Entypo & The Buttons I am using Daniel Bruce’s entypo webfont for the image on the button, not taking all the pictograms but 43 that I think commonly used. Beside contains these 43 pictograms this sets also can be used using three different styles : Beveled, Rectangle and Rounded. Those buttons also have three different states : normal, hover and active : Advantages Here are some advantages on using this sets : No images, all buttons using CSS and font.Using Animation for changing button states.Flexible, you can choose or even change the button size or style.Any container element can be applied (a, button, span, div, input, etc.)

Usage Button That’s it. Guide FAQ: How do I create a tabbed box? Free webmasters tool for creating tabs Facebook, Google+, Twitter, etc... CSS HOVER information. <p data-height="360" data-theme-id="9277" data-slug-hash="lbrqi" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href=' async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href=" Css hover zoom scale. <p data-height="360" data-theme-id="9277" data-slug-hash="qzwkb" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href=' async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href="

CSS hover Add button. <p data-height="360" data-theme-id="9277" data-slug-hash="mCFbo" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href=' async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href=" <div align="center">&nbsp; <div class="bouton_1"> <a href="#123"><img src="YOUR-URL-IMAGE.png"/> <span class="texteduboutton_1">Ajouter au panier</span></a> </div>&nbsp; <div class="bouton_2"> <a href="#123"><img src="YOUR-URL-IMAGE.png"/> <span class="texteduboutton_2">Ajouter au panier</span></a> </div>&nbsp; <div class="bouton_3"> <a href="#123"><img src="YOUR-URL-IMAGE.png"/> <span class="texteduboutton_3">Ajouter au panier</span></a> </div>&nbsp; <div class="bouton_4"> <a href="#123"><img src="YOUR-URL-IMAGE.png"/> <span class="texteduboutton_4">Add to cart</span></a> </div>&nbsp;</div>

Materialize - Documentation. PURE CSS INBOX BUTTON HOVER. SIMPLE CSS SLIDESHOW. <p data-height="360" data-theme-id="9277" data-slug-hash="LgjqJ" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href=' async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href=" CSS Triggers...