You are going to create pure CSS tooltip using single html anchor tag.
Download tooltip source code from codepen:
In this video you'll learn to create a css tooltip also known as css infotip or hint message. I am going to explain every bit possible, related to html5 css3 tooltip only. You will see how its easy to create html5 toolip using css properties only.
Key takeaways from this html5 css3 based tooltip video tutorial
You will learn to use:
- HTML5 data attribute to set the tooltip title
- CSS3 after and before pseudo selectors to create tooltip left arrow without images.
- CSS3 transitions add css tooltip animation
- CSS3 attrib() method and CSS content property to retrieve data from the html5 data-attribute from anchor tag.
- And finally you will create an amazing tooltip css only and adding animation to your tooltip.
Basically tooltip is used to display information to the user when they hover over their cursor to some images, icons, text or links. Tooltips can be very useful to display information when there is space constraints in design. By using infotip or hint you can display long descriptions to the user without affecting your design.
Creating tooltips using pure css have never been so easier, but here you'll see the clever use of CSS3 after and before pseudo selector and the most importantly you will see the use of content property of CSS3 and its attrib() method, By using attrib() method we'll fetch the information from the element's attribute.
You'll learn how to create a custom attribute to an element and then fetch information from this attribute to your document by mere use of CSS3 content property. Then I'll style the information and initially make it hidden by setting its opacity to none and visibility property to hidden.
And on the hover state I'll show you how to again use after & before pseudo selectors to display the tooltip.
You'll also learn to create the triangle shape speech bubble using pure CSS3. For this I'll be using CSS3 Border property. You can create triangle by setting the one side of border to solid color and other two sides of the border to solid transparent.
Finally, In this video lots of stuffed is packed. Just watch this video and reveals the powerful magic of CSS3.
One thing to mention here friends,
Please do not forget to provide feedback in comments section. And please hit like if you like it and share with your friends and finally subscribe this channel to learn lots of about web design and development.
You can visit my codepen account for more stuff like this:
You can follow me on my twitter account here:
You can add me on facebook too :)
Share this video and Subscribe to this channel for latest updates and web design tips and tricks.
Waiting for feedback :) . Drop a comment
Child marriages are common:
On a recent day, eight community elders sat in a [refugee] camp, some chewing khat, the narcotic leaf favored by most Yemeni men. Seven have married off their girls this year.
Even Salim, the elder who worked at the charity, is preparing to marry off his two daughters, ages 13 and 14. "I want to feel secure of their futures, if only for economic reasons," he said.
Mohammad Ali al-Ansi married off his two girls, ages 13 and 14, in April. "My heart is bleeding inside, but I was forced to do this," he said. "I have no job. Its difficult for me to feed my 10 children." He received $1,600 in dowry for each of his girls, he said. But after paying for their weddings and meeting other debts, the money has nearly run out. "If things get worse, theres no doubt Ill marry off my 12-year-old daughter," Ansi said.
More on Ansis 14-year-old daughter Fatma, married to 21-year-old Zaid:
Fatma spent her day cooking and washing clothes for her in-laws. When asked the name of her husbands family, Fatma didnt know it. She remembers her father telling her and her sister, Amal, that the family needed money. She remembers that Amal was in tears because her new husband was taking her to another region. The two sisters have not seen each other since their weddings.
"I am too young to be married," Fatma said. "I want to study. I want to learn how to write. I have sacrificed for my family," she continued, her voice dropping to a whisper.
Minutes later, her husband arrived at the tent, and Fatma went silent. He said Fatma was "at a good age to marry." When asked if she could attend school, he shook his head no. "Shes a little too old for school," he said.
Female sexual freedom among the Tuareg : Flora Drury has written up the sex habits of the Saharas Muslim Tuareg people based on the work by Henrietta Butler. Some excerpts:
Their men became known as the blue men of the Sahara because the dye from their distinctive indigo scarves rub off onto their faces giving them a mysterious air. The Tuareg evoke images of a long forgotten and romantic age.