![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Nov 2002
Location: FL - TN/NC
Posts: 5,211
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Natalie K
Industry Role:
Join Date: Apr 2010
Location: Spain
Posts: 19,251
|
Maybe from "8" down
![]()
__________________
My official site ![]() ![]() ![]() Skype: gspotproductions - "Converting traffic into income since 2005" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |||
Confirmed User
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:
Quote:
https://validator.w3.org/check Quote:
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com |
|||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
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). |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |