20 replies [Last post]
bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

I am not sure what section this should go in. I have a image in a css that I want to create a link to and I am not sure how to do it with the code I have. I want to be able to do this within the css file and not in a separate html page. Is there anyway to do this using javascript or something like that. Here is the code for the image:

#logo {background:url("images/testlogo.gif") no-repeat left top;float:left;height:87px;padding:0;width:75px;/*position:absolute;left:0;*/}

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 4 years 1 week ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

show us all your code, both

show us all your code, both html and css plz. or just post a link

bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

CupidsToejam wrote: show us

CupidsToejam wrote:

show us all your code, both html and css plz. or just post a link

I don't have html. The line of code I posted is part of the css file.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 23 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

bootsy wrote:... I don't

bootsy wrote:

... I don't have html. ...

Well, then what are you using the CSS for? Puzzled

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 4 years 1 week ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

bootsy wrote: I don't have

bootsy wrote:

I don't have html.

That could be a problem.

CSS does not create links. CSS styles the appearance of webpages built with html. Links are coded within your HTMl, not CSS.

bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

CupidsToejam wrote: bootsy

CupidsToejam wrote:
bootsy wrote:

I don't have html.

That could be a problem.

Did you not read what I posted. The code I provided is in the css file, it is an image logo and I want to make it into a link is there a way to do that with that code.

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 4 years 1 week ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

CTJ wrote: CSS does not

CTJ wrote:

CSS does not create links. CSS styles the appearance of webpages built with html. Links are coded within your HTMl, not CSS.

bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

CupidsToejam wrote: bootsy

CupidsToejam wrote:
bootsy wrote:

I don't have html.

That could be a problem.

CSS does not create links. CSS styles the appearance of webpages built with html. Links are coded within your HTMl, not CSS.

Well how is this done with the code I have in the css?

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 4 years 1 week ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

OMFG! You cant! You can not

OMFG! You cant! You can not create links in CSS. You have to do it in your HTML

bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

CupidsToejam wrote: OMFG! You

CupidsToejam wrote:

OMFG! You cant! You can not create links in CSS. You have to do it in your HTML

OMFG, really? I asked how I can do this with the code I have in the css Stare Not how to do it within the css. With the code I currently have in the css what do I need in the html? Is that clearer for you.

bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

Anyone? Please.

Anyone? Please.

bootsy
bootsy's picture
Offline
newbie
Last seen: 8 years 34 weeks ago
Timezone: GMT-5
Joined: 2011-01-19
Posts: 7
Points: 10

Wow this is the most

Wow this is the most unprofessional, worst forum I have ever been to.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 23 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2040
Points: 2262

Hello car building forum! I

Hello car building forum! I have

  • A thimble
  • A rubber band
  • And two Cap'n Crunch Crunchberries
  • How can I make a turbo charged V-6?

    OK, I'm just trying to one-up thepineapplehead, now. Glasses

    CupidsToejam
    CupidsToejam's picture
    Offline
    Guru
    Florida
    Last seen: 4 years 1 week ago
    Florida
    Timezone: GMT-4
    Joined: 2008-08-15
    Posts: 2637
    Points: 1556

    bootsy, observing your code,

    bootsy, observing your code, i see this is for your logo, right? Your logo should not be inserted with CSS. It should go directly in the html like so...

    <h1><a href="" title=""><img src="images/testlogo.gif" /></a></h1>

    h1 img {width: x; height: x;}

    Verschwindende
    Verschwindende's picture
    Offline
    Guru
    Last seen: 23 weeks 5 days ago
    Timezone: GMT-4
    Joined: 2009-10-09
    Posts: 2040
    Points: 2262

    I got a nice private message

    I got a nice private message from boobsie. Did you get one, too, Cupie?

    Quote:

    You are a grade a *beep*ing douchebag who still lives with his mom. You deserve to have your ass kicked.

    Inappropriate.

    CupidsToejam
    CupidsToejam's picture
    Offline
    Guru
    Florida
    Last seen: 4 years 1 week ago
    Florida
    Timezone: GMT-4
    Joined: 2008-08-15
    Posts: 2637
    Points: 1556

    Versch, I didnt get a

    Versch, I didnt get a personal message Sad I fell left out. he sounds very upset Shock

    Your V-6 comment was sooo funny!!

    Verschwindende
    Verschwindende's picture
    Offline
    Guru
    Last seen: 23 weeks 5 days ago
    Timezone: GMT-4
    Joined: 2009-10-09
    Posts: 2040
    Points: 2262

    CupidsToejam wrote: Versch, I

    CupidsToejam wrote:

    Versch, I didnt get a personal message Sad I fell left out. he sounds very upset Shock

    You want I should send you a nice greeting? Tongue

    CupidsToejam wrote:

    Your V-6 comment was sooo funny!!

    Hey, is that sarcasm? Crazy

    CupidsToejam
    CupidsToejam's picture
    Offline
    Guru
    Florida
    Last seen: 4 years 1 week ago
    Florida
    Timezone: GMT-4
    Joined: 2008-08-15
    Posts: 2637
    Points: 1556

    VerschwindendeHey, is that

    VerschwindendeHey wrote:

    is that sarcasm?

    No, I really enjoyed it Crazy

    Verschwindende
    Verschwindende's picture
    Offline
    Guru
    Last seen: 23 weeks 5 days ago
    Timezone: GMT-4
    Joined: 2009-10-09
    Posts: 2040
    Points: 2262

    CupidsToejam

    CupidsToejam wrote:

    No, I really enjoyed it Crazy

    HAHA. I aspire to one day be thepineapplehead's protégé.

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 4 years 36 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    Thread closed chaps! We could

    Thread closed chaps!

    We could have looked at the code and suggested earlier the example in #15 then things may not have got quite so out of hand.

    @bootsy regardless of how you feel you must refrain from bad language and other gestures on a forum also please do not use the PM system to communicate the same or similar sentiments to individual members.

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 4 years 36 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    Bootsy has now had his

    Bootsy has now had his account suspended for continuing to use the PM system to harass forum members.

    @bootsy if you wish you may appeal this decision of mine and email the forum owner directly to state your case.

    Hugo.

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me