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
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 03-03-2018, 06:37 PM   #1
venus
Confirmed User
 
venus's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Phoenix, Az
Posts: 3,112
who knows AMP (accelerated mobile page)

I am trying to make a background image responsive ( layout="responsive") but cannot find where to put the amp-img tag since the background image is in the css ..anyone know how to do it? this is the page I am working on
https://www.landofvenus.com/testit2.html
__________________
Muscle/Fitness Adult Affiliate Program
Since 1997 www.venuscash.com
venus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-03-2018, 07:03 PM   #2
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Quote:
Originally Posted by venus View Post
I am trying to make a background image responsive ( layout="responsive") but cannot find where to put the amp-img tag since the background image is in the css ..anyone know how to do it? this is the page I am working on
https://www.landofvenus.com/testit2.html
In head:
<style amp-custom>
.img-background { background-image: url(/image.jpg); }
</style>

Html:
<pre>
<div class="img-background"></div>
</pre>
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-03-2018, 07:49 PM   #3
venus
Confirmed User
 
venus's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Phoenix, Az
Posts: 3,112
I have that, but I need to add <amp-img src= to the image so I can add the responsive tag so it can auto resize

Quote:
Originally Posted by Colmike7 View Post
In head:
<style amp-custom>
.img-background { background-image: url(/image.jpg); }
</style>

Html:
<pre>
<div class="img-background"></div>
</pre>
__________________
Muscle/Fitness Adult Affiliate Program
Since 1997 www.venuscash.com
venus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-03-2018, 08:07 PM   #4
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
This should explain things, starting with "adding images"

https://webdesign.tutsplus.com/tutor...tch--cms-26158
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-03-2018, 08:21 PM   #5
venus
Confirmed User
 
venus's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Phoenix, Az
Posts: 3,112
looked at that already, I got the images down, those were easy because they are in the body of the page, the hard part is getting an image in a table to use responsive,like the below...there is no way to make the url background an amp image that I can find.

table.example-table {
background-color: rgba(0, 0, 0, 0);
background-image: url("https://www.landofvenus.com/imagesnew/main_new_BG4.jpg");
background-repeat: repeat;
background-attachment: scroll;
background-clip: border-box;
background-origin: padding-box;
background-position-x: 0%;
background-position-y: 0%;
background-size: auto auto;
}

Quote:
Originally Posted by Colmike7 View Post
This should explain things, starting with "adding images"

https://webdesign.tutsplus.com/tutor...tch--cms-26158
__________________
Muscle/Fitness Adult Affiliate Program
Since 1997 www.venuscash.com
venus 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
background, image, page, tag, css, amp-img, mobile, accelerated, amp, responsive, layout=responsive



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.