www.webdeveloper.com
Results 1 to 2 of 2

Thread: CSS image strech

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    29

    Question CSS image strech

    hey guys Im using wordpress and I have this css script

    Code:
    ul#nav2 li a:hover {
    	background:#444444;
    	text-decoration:underline;
    	text-indent:0px;
    	line-height:37px;
    	margin-top:-11px;margin-bottom:auto;
    	padding-top: 0px;
    	background: transparent url("images/onhover1.png") no-repeat scroll left top;
    	width:auto;
    	height:65px;
    And I want the image to stretch automaticly if the words are bigger.
    This is wordpress navigation menu.And every category have different word length and Im using an image as backround of every category.
    So if the category length is bigger than the image I want it to stretch.
    I DONT WANT TO REPEAT THE IMAGE

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    I'm not going to say you can't do it, because you can:

    http://www.w3schools.com/cssref/css3...round-size.asp

    But you can't do it in IE7/8....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles