Posts by author:

Author: Onsitus

The css property list-style allows to specify the type of markings for our list, changing the default bullet with an image (list-style-image), chosing its position (list-style-position) or the type of bullets using specific names (list-style-type).

Even if the style is applied to the list itself - html element <ul> or <ol> - the property list-style is about its inner elements <li> and to be more precised, its lateral marking.

Css rules for list-style:

ul {list-style: <value list-style-type> <value list-style-position> <value list-type-image>;}

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

Css Christmas card

Monday 21 December 09 by Onsitus in CSS Tips

Christmas card in css

This year, to present my Christmas wishes, I have created for fun this Christmas card only in css.

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

Free css template example 9
  • 2 columns Christmas theme Css Template
  • Fixed width 980px
  • W3C validation XHTML Strict
  • Tested with IE6+, FF2+, Opera9, Safari3, Chrome on Windows

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

free css template 8
  • 3 columns css template
  • 1 fixed column - 1 fluid column - 1 fixed column
  • Minimum width 940px
  • Minimum height 100%
  • Use of the property CSS3 border-radius
  • Validation W3C XHTML Strict
  • Tested with IE6/7, FF2/3, Opera9, Safari3, Chrome on Windows

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

The tooltips allows the user to view a descriptive text or extra information passing above a link with the mouse. You can find many examples already online. Next, you will find the test I done with 3 examples of css tooltips: a simple text, with an image plus text and with background images to create a ’speech bubble’ effect.
At the end of this article, you will find their browser compatibility.

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

4 examples of ‘box model‘ based on 2 columns layout with 1 fixed column and 1 fluid column.

Using the position:absolute; :

  • left column at fixed width / right column at fluid width
  • left column at fluid width / right column at fluid width

Using the float:left; :

  • left column at fixed width / right column at fluid width
  • left column at fluid width / right column at fluid width

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

Italian map in css

Monday 20 April 09 by Onsitus in CSS Menu

Although, this italian map created in css could not be of as much interest for international users as for the italian’s one, I will post anyway this example here to give you an idea for future use and maybe the creation of other country’s map.

css italian map

This css italian map uses an image for each province positioned in an absolute way to the pixel to rebuild the complete italian map. The css property ‘opacity’ is used on the hover state of the links and render the relative information to the province visible using the property display.

Continue to read >>

{ 2 comments }

2 comments

Stay updated with our RSS Feed

Image map in css

Friday 17 April 09 by Onsitus in CSS Tutorials

In this tutorial, we will see how to add clickable area to a background image to create in css the effect of image mapping without using the html element <map>.

This method is used to render part of an image interactive with the mouse on click and is valid for rectangular area.

First, I created a background image representing a top picture (type header) and a bottom menu with 4 buttons:

css image map

To this image, I will ad 5 clickable area, the first being the picture of the frog, the other 4 being the 4 buttons of the bottom menu.
Continue to read >>

{ 13 comments }

13 comments

Stay updated with our RSS Feed

Css image gallery

Tuesday 14 April 09 by Onsitus in CSS Menu

css gallery preview 1
css gallery preview 2

Always a bit curious to redo flash examples in css, I took the basic idea from the Flash gallery called Illusion created by FlepStudio.

This css gallery uses the same images for the vertical thumbnail (applied as background) and for their complete view on the hover state (element <img>) of the links with the related description (element <span>).

Those 2 elements are initially hidden using display:none; and made visible with display:block; applying a z-index superior to cover the thumbnail and positioned in an absolute way in relation to its <div> container.

Continue to read >>

{ 4 comments }

4 comments

Stay updated with our RSS Feed

With the css property text, we can specify the css style of an element’s text:

  • color: the text color
  • text-align: the text align to the left, right, centered or justified
  • text-decoration: the text ‘decoration’ like underlined, overlined, lined-trough or also blinking
  • text-transform: the transformation of each word’s first letter or of all the text in capital or lower case
  • text-indent: the indent of the first line of a paragraph
  • letter-spacing: the space in between each letter
  • word-spacing: the space in between each word
  • line-height: the space in between each line of text
  • white-space: the interpretation of the blank space in the text
  • direction: the direction of the text from left to right or right to left

Continue to read >>

{ 1 comment }

1 comment

Stay updated with our RSS Feed

free css template 7
  • Css template fixed width 960px
  • Transparent png as background
  • Added javascript for IE6 support of transparency
  • Validation W3C, XHTML Strict
  • Tested with IE6, IE7, FF2, FF3, Safari3, Opera9

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

In the working draft of the css3 module ‘background’, the css3 gives the possibility to apply more background images to a single element and not just the single one as specified in the css2 property background.

The css rules to apply multiple background image to an element are simple.

As for the css2, we specify an url for each images to use as background and their position separated by a comma.

An example of css rule to apply the multiple images background in css3:

#multiple_background{
background:url(background1.jpg) no-repeat top right, url(background2.jpg) repeat-x bottom;
}

Next, the test I done to create a banner using 6 images applied to an element 400px wide, 150px high and with a 2px gray border.

Here is an image preview of the result obtained with Safari3.1:

css3 multiple background
Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

To create an element with rounded corners, we have the css3 property border-radius which, at the moment, is not supported by all the browser.
Meanwhile, we can create rounded corner with the use of a single image and the css property background-position (and a few extra div in our html structure).
Continue to read >>

{ 1 comment }

1 comment

Stay updated with our RSS Feed

The css property min-width applies a minimum width to a selected element.

If the browser’s windows is resized by the user, the content will follow the movement and resize itself until a certain width. Passed that limit, the window’s scrollbars will appear.

This property is useful in the case of a fluid layout or when applying to the content the float property to avoid that the block elements move downwards if the space is limited.

Unfortunately, the min-width is not supported by Internet Explorer 6.

Next, 2 solutions to specify a minimum width for IE6.

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed

6 examples of ‘box model‘ based on 2 columns:

  • 2 columns fixed width aligned to the left
  • 2 columns fluid width aligned to the left
  • 2 columns fixed width centered aligned
  • 2 columns fluid width centered aligned
  • 2 columns fixed width aligned to the right
  • 2 columns fluid width aligned to the right

Continue to read >>

{ 0 comments }

0 comments

Stay updated with our RSS Feed