May 22, 2012, 01:50:11 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Mobile users - Our forum is Tapatalk enabled.
http://www.tapatalk.com/
Home
Help
Search
Login
Register
DotDragnet
>
The Tech Side
>
Tech stuff
>
Image Replacement
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Image Replacement (Read 930 times)
Jeewhizz
DDN Contribs
Hero Member
Posts: 1626
Image Replacement
«
on:
January 21, 2008, 09:52:08 PM »
Hi Guys,
Trying to do a h1 image replacement for the header of one of my sites:
<a href='/'><h1>Title</h1></a>
h1 {
padding-top: 89px; /* height of the replacement image */
height: 0px;
overflow: hidden;
background-image: url("images/logo.png");
background-repeat: no-repeat;
margin-bottom:0px;
}
Now, the problem is, That's not valid HTML! How do I link the image whilst doing an image replacement, and maintaining valid code?
Cheers,
Jee
Logged
UK Web Design
Airport Car Parking
Check out my
blog
Business Forums
Mr Anderson
DDN Contribs
Hero Member
Posts: 2267
Re: Image Replacement
«
Reply #1 on:
January 21, 2008, 10:07:41 PM »
Code:
<h1><a href=""><span></span> Text</a></h1>
Put a non-breaking space in if you don't want a validator to tell you off for having an empty span.
Logged
500px
|
last.fm
|
G+
|
lomo
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Jee's Forum of Appalling Jokes
-----------------------------
The Creative Side
-----------------------------
=> Arty stuff
=> Photography
=> On the web
-----------------------------
The Tech Side
-----------------------------
=> Tech stuff
=> Hardware & Software
-----------------------------
The Business Side
-----------------------------
=> Anything business related
-----------------------------
The Practical Side
-----------------------------
=> Practical Advice
DotDragnet
>
The Tech Side
>
Tech stuff
>
Image Replacement
Loading...