hm_468x60_09_395
announcement

Joomla Web Hosting

Find the best and most affordable Joomla web hosting provider.

Community Showcase on joomla.org

The Joomla Project is pleased to announce latest undertaking to promote Joomla site

Advertise on JoomlPanel.com

For only $30.00 a month you can advertise on one of the web's largest Joomla websites.

More Changes Coming Soon!

Check back for future changes!

bh_300x250_08_395

Creating drop caps and pull quotes using CSS

dropcap

Drop caps is large letters typically used at the start of a printed article are rare online, although they can be a useful way of drawing the eye to the beginning of the body copy. Pull quotes are more common, and while part of their use in print taking a choice quote and making it stand out on the page to draw in the reader is less effective online, pull quotes are still handy for highlighting a piece of text (such as a quote or idea) or for providing client quotes on a company website.

1. Create a new rule that targets the relevant character. For this, you can use a pseudo-element, first-letter, and the adjacent sibling selector created earlier in the “Styling semantic markup” section. See Appendix D (“CSS Reference”) for more on pseudo-elements.


h1+p:first-letter {
}


In plain English, this rule is saying, “Apply this rule to the first letter of the paragraph that follows the level-one heading.”


2. Float the character and increase its size. Add a float: left property/value pair to float the first character in the paragraph to the left, which makes subsequent content wrap around it. Then set a large font-size value to increase the size of the character compared to the surrounding text.


h1+p:first-letter {
float: left;
font-size: 3em;
}


3. Finally, tweak the positioning. Define a line-height value and margin-top value to vertically position the character; you may need to experiment some when working on your own designs outside of this exercise, since the values required are somewhat dependent on the font-size setting. The margin-right setting provides some spacing between the drop cap and the subsequent text.


h1+p:first-letter {
float: left;
font-size: 3em;
line-height: 1.0em;
margin-top: -3px;
margin-right: 0.15em;
}


Although this technique is the most straightforward one for working with drop caps, the results aren’t entirely satisfactory. Due to the way different browsers deal with the first-letter pseudo-element, display isn’t particularly consistent across browsers and platforms see the following two images, which show the results in Firefox and Safari. Therefore, if you want to use drop caps with more precision, it’s best to fall back on a more old-fashioned but tried-and-tested method: the span element.

1. Add the span elements. Wrap a span element around the first character of the paragraph and give it a class value of dropCap. Wrap another span element around the initial character, without any class attribute. The additional span makes it easier to fine-tune the positioning of the drop cap.

 

joomlahosting




Joomla Tutorials

Joomla panel provides easy to use website joomla tutorial free download joomla templates for joomla verssion 1.0x and 1.5x. Here you will learn how to install Joomla, all the way to installing and customizing your own templates.

Tutorials Showcase enables you to build Web sites and powerful web applications. Best of all, Joomla is an open source solution that is freely available to everyone.

Building Web CMS Project

Submit your joomla web to joomlapanel web showcase gallery directories and find the joomla stable extensions : Joomla plugin, joomla module, joomla component, joomla mambot.

Submit your Article blog into our article directories to anchance high web Traffic.

 

Article and Tips trick

Your sohowcase for Travel guide; Hotel, Villas resort, Flight, car website

tutorial