1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Small CSS Problem

Discussion in 'HTML & Website Design' started by CWN, Jul 9, 2008.

  1. #1
    http://wumble.ca

    Does anyone know what might be the problem for the logo being cut off at the side, there? I think it is a quick-fix, I'm just not sure what it is.
     
    CWN, Jul 9, 2008 IP
  2. yankzilla

    yankzilla Peon

    Messages:
    159
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Im on it. Give me about 5 minutes.

    Ok, figured it out. Change your #header h1 css to:
    #header h1 {
    	float: left;
    	margin-top: 20px;
    	padding: 0px;
    	background: url(images/img02.jpg) no-repeat right top;
    	text-transform: lowercase;
    	letter-spacing: -3px;
    	font-size: 4.4em;
    	width: 285px;
    	height: 255px;
    }
    Code (markup):
     
    yankzilla, Jul 9, 2008 IP
    kentuckyslone likes this.
  3. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not to contradict or anything but i'd say your better off setting your background in #header instead of in #header h1 you should also change it to top left while your at it since right now that is why it's cutting on the left instead of the right with your width at 285px.
     
    007c, Jul 9, 2008 IP
  4. yankzilla

    yankzilla Peon

    Messages:
    159
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There was no width or height set, only padding, so all I did was remove the padding and set a defined width and height for it. I didn't bother with the background positioning, as it isn't going to affect it either way if it's the same size as the image.
     
    yankzilla, Jul 9, 2008 IP
  5. CWN

    CWN Banned

    Messages:
    311
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, that worked just great. I aprr the help guys!
     
    CWN, Jul 9, 2008 IP