Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Very simple CSS

  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    81
    Thanks
    7
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,696
    Thanks
    0
    Thanked 232 Times in 227 Posts
    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 !

  • Users who have thanked coothead for this post:

    johnsmith153 (09-24-2012)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •