Solved

How can I expand text with explaination

Posted on 2016-11-10
5
20 Views
Last Modified: 2016-11-11
I want to create a homepage. I want to be able to have text that appears like this but when a user hovers over it the text expands (and becomes bigger on where-ever their pointer is at). Is there anyway I could do this?
0
Comment
Question by:Jasmine Ikhreishi
  • 2
  • 2
5 Comments
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
Comment Utility
You can do this with a CSS style
<!doctype html>
<html>
<head>
<style type="text/css">
p {
  font-size: 12px;
}
p:hover {
  font-size: 20px;
}
</style>
</head>
<body>
<p>This is the text</p>
</body>
</html>

Open in new window

0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
Comment Utility
Also I have like this in a bootstrap blog page
    <h4><small>RECENT POSTS</small></h4>
      <hr>
      <h2>Officially Blogging</h2>
      <h5><span class="glyphicon glyphicon-time"></span> Post by John Doe, Sep 24, 2015.</h5>
      <h5><span class="label label-success">Lorem</span></h5><br>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
      <hr>

Open in new window

Is there a way I could put a background image just for this block?
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
give the h4 a class (say bgimage)
[code]
<style type="text/css">
h4.bgimage {
  background: url(path/to/image.jpg) no-repeat;
}
</style>
...
<h4 class="bgimage">
...
</h4>

Open in new window

[/code]
If you want a sample suggest you post another question and put your source code and image in it. Then post link here.
0
 
LVL 1

Author Comment

by:Jasmine Ikhreishi
Comment Utility
Okay thank youu
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now