Even though the issue has already been resolved I'd like to propose another way of doing it just so you and others are aware of it in the future :)
You can of course not place a link in your CSS but you can have some markup like
<a href="/" class="logo" title="Go back to the homepage">Company name</a>
Then in your CSS you can place the background image like this
.logo{
background: url(/media/1017/hpc-group-logos_tj-hpc-negative-page-004.jpg);
display:inline-block;
height:100px;
height:100px;
/* This is hiding the text in the anchor visibly*/
text-indent:100%;
overflow:hidden;
white-space:nowrap;
}
You will of course need to adjust the dimensions and the position in the header.
The above example is from the top of my head but it should work :) (Famous last words).
We haven't launched it yet, there have been some CSS changes to be made (grrrreat!!). It works but doesn't look exactly the required way yet (whatever that is!!). Another week or so..... :)
Image link
Hi All
I have an image in my stylesheet like here:
div#header { width:944px; background-color: #fff; border-bottom: 3px solid white; background-image: url('/media/1017/hpc-group-logos_tj-hpc-negative-page-004.jpg'); background-repeat: no-repeat; height:90px;float:right; }
Is it possible set it up here as a link to home?
I couldn't figure out how to do that so I referenced the image in my Template instead and now there is extra white space around it!
Nobody has noticed....yet!
Thanks. Tony
Hi Tony,
What if you are doing something like this below would this remove the white space around the image.
Hope this helps,
/Dennis
Hi Dennis
Thanks sorted! :)
Tony
Hi Tony
Even though the issue has already been resolved I'd like to propose another way of doing it just so you and others are aware of it in the future :)
You can of course not place a link in your CSS but you can have some markup like
Then in your CSS you can place the background image like this
You will of course need to adjust the dimensions and the position in the header.
The above example is from the top of my head but it should work :) (Famous last words).
Just my 2 cents.
/Jan
Hi Jan
So, there's more than one way to skin a cat! It's always great to get another option. Thanks for that. :)
I'm playing with all sorts of options now, wrecking my own head moving stuff around!
Tony
Hi Tony
Indeed there is :) - And it's a matter of figuring out, which one is the most appropriate in the given context.
Off topic - How did the launch of the intranet go btw?
Happy coding! :)
/Jan
Hi Jan
We haven't launched it yet, there have been some CSS changes to be made (grrrreat!!). It works but doesn't look exactly the required way yet (whatever that is!!). Another week or so..... :)
I'll be pestering again on Friday! Thanks. Tony
is working on a reply...