GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CSS Help - easy shit that I am too dumb to figure out (https://gfy.com/showthread.php?t=625357)

Jace 06-23-2006 07:28 PM

CSS Help - easy shit that I am too dumb to figure out
 
#middle h1 {
width: 206px;
height: 125px;
padding: 0px;
margin: 0px;
background: #A3CC52 url(images/header-linkblog.gif) no-repeat center center;
text-indent: -10000px;
color: #FFF;

how can I make that image linked to a url?

Jace 06-23-2006 07:45 PM

anyone? bueller? bueller?

newbreed 06-23-2006 07:48 PM

Put the href tag around it.

StuartD 06-23-2006 07:49 PM

make the image linked?

You can't, but you could make that h1 have an "onclick" handler.

<h1 onclick="location.href='http://www.yahoo.com'"> Stuff </h1>

This will make the entire h1 area clickable (the entire background image in a sense).

aico 06-23-2006 07:49 PM

My answer seems too simple, so I won't post it. But a bump for you.

newbreed 06-23-2006 07:49 PM

<a href="url_here">IMAGE_URL_HERE</a>

Jace 06-23-2006 07:52 PM

dude...um...you all...this is in style.css

LOL

you all are giving me html

Chio 06-23-2006 07:52 PM

Header Logo Link I am guessing?

<div class="your class here" onclick="location.href='<?php echo get_settings('home'); ?>';"></div>

That does it for me. Modify it for your needs. Mess with that a bit, in your template not css.

Jace 06-23-2006 07:53 PM

Quote:

Originally Posted by StuartD
make the image linked?

You can't, but you could make that h1 have an "onclick" handler.

<h1 onclick="location.href='http://www.yahoo.com'"> Stuff </h1>

This will make the entire h1 area clickable (the entire background image in a sense).

hm...I can try that

Chio 06-23-2006 07:53 PM

Quote:

Originally Posted by Jace
dude...um...you all...this is in style.css

LOL

you all are giving me html

It can't be done in css hence the html

Chio 06-23-2006 07:54 PM

Quote:

Originally Posted by StuartD
make the image linked?

You can't, but you could make that h1 have an "onclick" handler.

<h1 onclick="location.href='http://www.yahoo.com'"> Stuff </h1>

This will make the entire h1 area clickable (the entire background image in a sense).


oops too late. Didn't see yours but yeah that's how you do it.

Jace 06-23-2006 07:55 PM

Quote:

Originally Posted by StuartD
make the image linked?

You can't, but you could make that h1 have an "onclick" handler.

<h1 onclick="location.href='http://www.yahoo.com'"> Stuff </h1>

This will make the entire h1 area clickable (the entire background image in a sense).

that did it

thanks man!

Jace 06-23-2006 07:57 PM

Quote:

Originally Posted by Chio
It can't be done in css hence the html

I was referring to newbreed telling me <a href="url_here">IMAGE_URL_HERE</a>

it works now though, thanks

newbreed 06-23-2006 07:58 PM

Quote:

Originally Posted by Jace
I was referring to newbreed telling me <a href="url_here">IMAGE_URL_HERE</a>

it works now though, thanks

My bad Jace, I read it too fast and answered the obvious....lol

Yes, tonight, I am "that guy" haha :thumbsup

Jace 06-23-2006 07:59 PM

Quote:

Originally Posted by newbreed
My bad Jace, I read it too fast and answered the obvious....lol

Yes, tonight, I am "that guy" haha :thumbsup

haha, that was me last night ;)

kiss kiss hug hug baby

StuartD 06-23-2006 07:59 PM

Quote:

Originally Posted by Jace
that did it

thanks man!

My pleasure :thumbsup


All times are GMT -7. The time now is 12:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123