Solved

Photo in A Div

Posted on 2014-10-18
3
76 Views
Last Modified: 2014-10-18
I am trying to put a photo in a div and its not staying in the div.

 <div class="container_12 top-1">
       	<a href="homeerase.html"><div id="zoom_img" class="grid_4 box-1">
        	I've put too much<br>
            personal information<br>
            on the Internet!<br>
            Can I get it back?
        </div></a>

Open in new window


#zoom_img{
    width:250px;
    height:150px;
    border:5px solid gray;
    border-radius:15px;
	background:#FFF;
	font-family:Arial, Helvetica, sans-serif;
	color:#000;
	font-weight:bold;
	font-size:20px;
	padding-top:40px;
	padding-right:10px;
	/*padding-bottom:20px;*/
	padding-left:30px;
}

Open in new window

0
Comment
Question by:DS928
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40389447
Whats the CSS for container_12 and top-1

You probably need to add overflow:auto to one of the classes
0
 

Author Comment

by:DS928
ID: 40389454
A little complex.  So I attached the file.  Here is the link

www.davidschure.com

Trying to get the photo in the rounded rectangle with the writing on top.  Maybe I'm making this more complicated than it needs to be!
grid-12.css
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40389458
To #zoom_img
Change the height to
height:auto

and add
min-height:150px
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

910 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

22 Experts available now in Live!

Get 1:1 Help Now