Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-05-2015, 11:51 AM   #1
suesheboy
Confirmed User
 
suesheboy's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: FL - TN/NC
Posts: 5,211
Need to make Divs hyperlinks but here is the catch...

...without using any type of Java and HTML5 compliant.

Just can't find the answer of figure it out.

In other words I want a div that contains mixed media - text - images and or video and clicking on the DIV takes you to another URL.

I know how to style to mouse over to work right on CSS, just can't get the hypertexting to work without Java or JQuery
suesheboy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2015, 12:29 PM   #2
Relic
So Fucking Banned
 
Join Date: Aug 2002
Posts: 10,300
css - Make a div into a link - Stack Overflow

2nd post is what you want I believe.

You need to span a large A href over the div essentially.
Relic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2015, 02:48 PM   #3
suesheboy
Confirmed User
 
suesheboy's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: FL - TN/NC
Posts: 5,211
Quote:
Originally Posted by Relic View Post
css - Make a div into a link - Stack Overflow

2nd post is what you want I believe.

You need to span a large A href over the div essentially.
From what I see that is not Valid HTML.
suesheboy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2015, 06:22 PM   #4
NatalieK
Natalie K
 
NatalieK's Avatar
 
Industry Role:
Join Date: Apr 2010
Location: Spain
Posts: 19,251
Maybe from "8" down
__________________
My official site Semi exclusive custom clips My affiliate programFirst time girls
Skype: gspotproductions - "Converting traffic into income since 2005"
NatalieK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2015, 04:03 AM   #5
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,094
sadly, you can't add any <a> tag around divs and pass validation.. what you can do is changing the DIV tag to SPAN and you will be good to go...

Before:
Quote:
<a href="http://www.google.com/" title="test"><div id="content">This is a test</div></a>
After:
Quote:
<a href="http://www.google.com/" title="test"><span id="content">This is a test</span></a>
You can always check your code at
https://validator.w3.org/check

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 5 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<a href="http://www.google.com/" title="test"><span id="content">This is a test</span></a>
</body>
</html>
Hope it helps.
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2015, 05:39 AM   #6
suesheboy
Confirmed User
 
suesheboy's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: FL - TN/NC
Posts: 5,211
Thanks for the responses.

I am going to have to play with the swapping span for div to see if will work for my concept.

I am playing around with some rotating / custom advertising targeted to individual surfers and want to keep it cross browser and platform compliant, is not picked up as ads by blocking software, keeps my sites mobile ready, allows A B C testing, and allows me to "follow" and "nofollow" links depending on what I am serving.

I plan to be serving these across a network of sites, database driven and the java inside div was interfering with other java on the site for some browsers (rotating banners, social media, bootstrap and a chat module).
suesheboy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2015, 05:48 AM   #7
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
Im typing from my phone so i cant test the code exactly.

But cant you just display the div or "a div" as display: block?

the entire div should become selectable with the link within the div.

You didnt post the example code youre having problems with so youre making it harder for someone to help. Show the exact code line example.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
java, div, takes, url, divs, video, text, images, hyperlinks, clicking, css, hypertexting, jquery, style, mouse, mixed, answer, figure, catch, html5, compliant, type, words, media
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.