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)
-   -   Why is my image massive? It not supposed to be big??? (https://gfy.com/showthread.php?t=1340642)

Pink24 01-14-2021 12:21 PM

Why is my image massive? It not supposed to be big???
 
Code:

<td style="width: 100%; text-align: center;"><a href="http://www.xxxx.net/site/chaturbate/"><img src="https://xxxx.net/img/chaturbate%20mini.png" alt="Chaturbate logo" width="106" height="40" /></a>
RESULT =

https://i.imgur.com/619J9VT.png

Is my CSS the culprit??

img {
display: block;
height: auto;
max-width: 100%;
width: 100%;
}

from inspect.

Pink24 01-14-2021 01:21 PM

Tried this inline CSS but it doesn't even show up??

<style>
#logos {
display: inline-block;
width:100%;
}
</style>

<div id="logos">
<img style="display: inline; margin: 0 5px;" title="" src="https://xxxx.net/img/chaturbate%20mini.png" alt="Chaturbate logo" width="106" height="40" href="https://xxxx.net/site/chaturbate" />

CurrentlySober 01-14-2021 01:47 PM

Could it be anything to do with the %20 in the image name?

Quote:

https://xxxx.net/img/chaturbate%20mini.png
I know that the %20 is shorthand for a 'space' but have you tried renaming the image to https://xxxx.net/img/chaturbate-mini.png and relinking it with a hyphen as opposed to a space, which creates the '%20' ?

Disclaimer - I know FUCK ALL about css etc, but I have had problems (in other ways) with a space being displayed as %20 before... :2 cents:

NatalieK 01-14-2021 02:34 PM

is this the only td you have in the tr?


itīs 100%, so looking to make the logo fill the whole of the width...

hope that makes sense.

remove the width 100%, try it for a moment

Pink24 01-14-2021 02:57 PM

No, neither of these made any difference.

I tried renaming the file to chaturbate-mini and removed the 100%.

I think it's something to do with the css file which is overriding the php

Pink24 01-14-2021 02:58 PM

Quote:

td??????

hire somebody to write your html for you.
Yeah, I know. I used an online generator.
Thought it would be easier. Sheesh.

redwhiteandblue 01-14-2021 03:07 PM

Your problem is

width: 100%
max-width: 100%

You need to set the max-width to whatever the actual width of the image is (106px I guess) or whatever the biggest size you want it to be. 100% sets it to whatever size the parent element is with no maximum restriction.

NatalieK 01-14-2021 03:11 PM

Quote:

td??????

hire somebody to write your html for you.
tr is your rows down the page and td is your cells across the page, so as pink has used just one td, with width 100%, the image is filling the whole of the width.

Quote:

Originally Posted by Pink24 (Post 22806295)
Yeah, I know. I used an online generator.
Thought it would be easier. Sheesh.


I agree with pete, hire someone to make your site or use a site design like WP and add the logo to the logo area on the WP site :2 cents:

redwhiteandblue 01-14-2021 03:24 PM

You don't need to change the width settings if you want a responsive page. You only need to set the max-width value to a fixed value. Setting it to a percentage doesn't make a lot of sense. Keep the "width="106" height="40" attributes in the html to avoid CLS issues, and if you don't know what that is look it up, it's going to become important.

NatalieK 01-14-2021 06:20 PM

Quote:

Originally Posted by redwhiteandblue (Post 22806312)
You don't need to change the width settings if you want a responsive page. You only need to set the max-width value to a fixed value. Setting it to a percentage doesn't make a lot of sense. Keep the "width="106" height="40" attributes in the html to avoid CLS issues, and if you don't know what that is look it up, it's going to become important.

if itīs a responsive page, html5, it shouldnīt need td and trīs, should it?

isnīt it all div?


All times are GMT -7. The time now is 11:17 AM.

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