Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2012, 06:50 PM   PM User | #1
johnsmith153
New Coder

 
Join Date: Mar 2012
Posts: 81
Thanks: 7
Thanked 0 Times in 0 Posts
johnsmith153 is infamous around these parts
Very simple CSS

I'm guessing this is simple, but not for me.

http://page-test.co.uk/img.html

The red box needs to wrap around everything.

I need to do the image like this (if possible).

I can't find anything on Google, or even know what I would search for.
johnsmith153 is offline   Reply With Quote
Old 09-24-2012, 07:14 PM   PM User | #2
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,551
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
Hi there johnsmith153,

add the highlighted in red attribute here...
Code:
.google-image {
	position:relative;
        display:block;
	height:178px;
	width:273px;
}
Also remove the highlighted in red attribute here...
Code:
.box {
	border:1px solid red;
	height:100%;
}
...which is unnecessary.

coothead

Last edited by coothead; 09-24-2012 at 07:19 PM.. Reason: had an afterthought !
coothead is offline   Reply With Quote
Users who have thanked coothead for this post:
johnsmith153 (09-24-2012)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:51 AM.


Advertisement
Log in to turn off these ads.