Thursday, 27 November 2014

CSS Flower

CSS Flower
Let flowers bloom with CSS!

The basic structure of the petals are made with 10 div elements. The unique shape of a petal is created by CSS border-top-left-radius and border-bottom-right-radius. The greater the value the rounder the corner gets.

HTML & CSS Code

Wednesday, 26 November 2014

Sweeten Your Text With CSS: Chocolate

Sweeten Your Text With CSS: Chocolate
Chocolate
I love chocolate! So why not making a chocolate like logo? In the example above, I have used 3 different colors: sienna (#D2691E), maroon (#800000) for the highlights and the shadows and chocolate (#D2691E) for the whole bar. It should look like a chocolate bar so I have used border-style:outset in the CSS code. The highlight and shadows of the letters are made with the text-shadow property. After working on this design for 30min I have a graving for chocolate!

CSS & HTML Code

Tuesday, 25 November 2014

CSS Flex: Making A Sunblock

CSS Flex: Making A Sunblock
Here I have designed a window sun block.

The CSS display:flex property makes it super easy to create same sized HTML div elements with different colors.

HTML

The "box" div element contains several div elements describing the color of each element with style="background-color:color".

CSS

The size of the div elements is defined by flex:1. The prefix -webkit- and -ms- is necessary if you want to display it in Safari and Internet Explorer. Don't forget to write display:flex for the "box" div element.

CSS&HTML Code

.

Monday, 24 November 2014

Jeans Style Logo With CSS

Jeans Style Logo With CSS
The border-style allows you to choose different border styles. In the designs above I have used the border-style:dashed to create a label which looks like a stitched one. For details, have a look at the code.


HTML & CSS Code

Friday, 21 November 2014

What Time Is It?

Pink & Black Clock With jQuery

Here, I've created a clock with JavaScript.
First of all, the clock should start working the page has been loaded so we use the onload event. We call the function "clock()".

HTML

To connect the event with the function you have to write onload="clock()" in the body element of the HTML code. The onload event is only valid in the body element. For example, if you put onload in the button element it will do nothing.

JavaScript

We want to get the hours, minutes and seconds so we use the following methods: getHours(), getMinutes() and getSeconds(). The Date() object makes it possible that the actual time is shown. The last line of the code put the hours, minutes and seconds with + together. You have to put something between the variables to make sure everything is displayed; this time I've put colons in between.



HTML Code

CSS Code

JavaScript Code

Thursday, 20 November 2014

Red Neon Sign With CSS

Red Neon Sign With CSS
T-Bone


I wanted to try other colors for a neon style sign and I though red would look nice. So I've used red for text-shadow in CSS. Here is its structure:

text-shadow {y px x px zpx colour;}

The first px value shifts the text horizontally, the second vertically and the last value defines the degree of the blur.


CSS&HTML Code

Wednesday, 19 November 2014

Retro Telly With CSS

tv designed with css
Retro Telly With CSS
This TV includes 6 div elements which display the TV outer box ("telly_frame"), the screen ("screen"), two antennas ("antenna_left", "antenna_right") and the two buttons on the left ("upper_button", "downside_button"). All div elements are put inside the outer box to position the rest of the elements absolute to this element.

The screen, the buttons are relative to the box which is described with the property position:absolute. The metallic effect of the buttons is created with the CSS background:linear-gradient property and don't forget to put the prefixes -o-, -moz- and -webkit- to show it in all browsers.


CSS & HTML CODE

Tuesday, 18 November 2014

Sweeten Your Text With CSS: Mille-Feuille

mille-feuille style letters designed with css
Mille-Feuille Style Text With CSS
Mille-Feuille
This text design has been inspired by the pastry mille-feuille. I've used 4 different colours in the CSS text-shadow property to express the different layers of the cake. If you create several layers in text-shadow separate them with "," and just the last line with ";" to make it work.


HTML&CSS

Monday, 17 November 2014

Fading Buttons With CSS Flex

dots created with the css property flex
Fading Buttons With CSS Flex
Blue
Yellow
Green
Red
Orange
Pink
Here we have same sized buttons. CSS flex property makes it easy to create same sized objects. To make them more exciting I have added the transition property to them as well. The flex property can also be wrapped by using flex-wrap:wrap. To show it in Chrome, Safari and Opera don't forget to put the prefix -webkit- in front of flex-wrap.The border-radius has been set to 50% for the circles.
Note that hover will not work on a tablet.


HTML&CSS

Friday, 14 November 2014

Text Animation With Hover

Text Animation With Hover
Honey Bunny!
If you move your mouse over the text it looks like if it's blown away by the wind.
The code is pretty straightforward. Use the text-shadow property of CSS and put different px-values. To make the effect as if the text blows away set the last 2 pixel values relatively high. The hover property enables you to start the effect by putting the mouse pointer over the text.


CSS&HTML

Thursday, 13 November 2014

Neon Signs With CSS

green neon sign designed with css
Neon Sign Effect With CSS

24 Hours


Again, css text-shadow property allows you to create interesting effects with the text.
To make a neon-like effect there a is a lot of blur added (third value of the text-shadow property). Have a look-see at the code!

CSS&HTML Code

Wednesday, 12 November 2014

Designing Text With CSS: Liquorice

letters looking like liquorice designed with CSS
Designing Text With CSS: Liquorice

LIQUORICE

I have created a liquorice candy inspired text above.
The CSS text-shadow property allows you to create many layers of the same character. The first ten vertical layers (which are the 2nd px-values in the CSS code) are in pink, the second ten layers in black and so forth.

CSS&HTML CODE

Tuesday, 11 November 2014

The Text Is Burning! CSS Effects

Burning Text With CSS

Fire

In the following example, the text looks like if it is burning. The CSS text-shadow property allows you to create this effect. The point is to use 4 different text-shadow colors―yellow, red, orange and brown―with different vertical and blur values. The text itself has white color.



CSS&HTML Code

Monday, 10 November 2014

Title Design: Glowing Letters

glowing letters designed with css
Text Design with CSS

W e l c o m e



CSS text-shadow attribute helps you to create interesting effects with the text.

CSS

The text shadow attribute is as follows:
text-shadow: H px Vpx B px color; The "H px" shifts the text horizontally; if you put a "-" in front of the value the text will shift to the left side.The "V px" shifts the text vertically and if with a "-" it shifts the text to the top.The "B px" defines the degree of the blur.

HTML

To color each character differently like in "Welcome" just use the span element for each character. and don't forget to define each span element with a unique "id" attribute otherwise you are not able to define each character in CSS. If you choose numbers for the id name such as 1, 2, 3 and so forth
CSS will not display the desired effects to those attributes.
Instead choose "one", "two", "three" etc. .


CSS&HTML Code


Friday, 7 November 2014

CSS Hearty Heart

Heart designed with CSS
True Heart
Make two div elements in html and use the border-radius property to round the corners. Each corner of the rectangle can be shaped individually. In this example, the top corners are smoothed away with with border-top-left-radius and border-top-right-radius. The left rectangle which is in red has the property position:absolute and is rotated 45°. The left rectangle colored in pink is positioned relatively to the red part and is rotated 270°.


CSS Code

HTML Code

Thursday, 6 November 2014

CSS Cherry Blossom

cherry blossom with css
Cherry Blossom
Today, I've created a cherry blossom with CSS and HTML.
In this example, the most important point in this example is to position the elements correctly.

The HTML & CSS Code

All the leaves and pollen of the cheery blossom are child elements
of the flower center which has the id "pollen1" meaning that the div elements are inside the "pollen1" div element. All child elements are positioned relative to its parent element. The CSS code "pollen1" has the property position:relative and the other elements have position:absolute.
And how do you make the pointed parts of the leaves? I`ve used white squares which have been rotated and they are the child elements to the the leaf elements.


HTML & CSS Code

Wednesday, 5 November 2014

Circles, Circles, Circles

Circles, Circles, Circles
1
EURO
The border-radius CSS property allows you to make round shapes.
This time, I've used several round shapes to design a coin.

HTML

Inside the largest outside circle which has the "id="outside_outside_one_euro"" in the div element
are 2 more smaller circles which are labelled as "id="outside_one_euro"" and "id="inside_one_euro"".The smallest circle includes "1 EURO" put in separate div elements.

CSS

border-radius:50% is applied to all div elements to create circles.
If you want to round the borders just a little bit you can use different px values.


HTML & CSS Code Together

Let It Spin!

Rotating Coin
When you put the cursor on top of the coin it will start spinning around.
To let it spin you have to choose the length of the rotation which is set through animation:rotation (this is the name of the animation so you can choose a random name): seconds s.
In order to show the animation in all browsers don't forget to put the prefix -webkit- in front of the property.
Details of the animation are described in @keyframes rotation. The coin is spinning laterally meaning on its y-axis therefore transform property is set to rotateY(deg).


HTML Code


CSS Code