Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2016, 07:15 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 43,466
Ittermat is on a distinguished road
Talking Automatically resize images?

Is there a way to automatically resize images for you?

For example I want to make my shop images...300 by 300..

my pet images 150 by 150...

my items 75 by 75..

just for an example.

Is there a way for this to automatically happen? Since they arent these sizes..they're bigger.

Thanks in advance ^^;
Reply With Quote
  #2  
Old 02-02-2016, 07:51 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 127,489
Kyttias is on a distinguished road
Default

You should be able to do this with css, just effect all images within an html element. You should be able to investigate the page structure by right clicking the element and using 'Inspect' on it.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #3  
Old 02-02-2016, 08:03 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 43,466
Ittermat is on a distinguished road
Default

okay...I'll try that- would that work with everyone who visits it too? and then would I have to do it on EVERY page that image is on?
Reply With Quote
  #4  
Old 02-02-2016, 08:31 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 127,489
Kyttias is on a distinguished road
Default

Incorporate the css into your site's theme. For example, you can target images inside tables with:

table img {width: 100px; height: 100px; }

But this would make all images in all tables everywhere in your site be that size. That's why you need to inspect the page to find html element's id whenever you can. For example, the id on the table in adoptable shop is "shop" and you could target the images inside with:

table#shop img {width: 150px, height: 150px;}

You just need to add lines like this to your theme's css stylesheet.

It might honestly be better to simply resize all of your images. You should be able to google up a tool to batch resize your images so you don't have to do them all by hand.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 02-02-2016 at 08:34 PM.
Reply With Quote
  #5  
Old 02-02-2016, 09:03 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 43,466
Ittermat is on a distinguished road
Default

yea Im just resizing all of them... haha I figured I'd ask if there was a way to have the main settings automatically resize them.

thank you ^^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:22 AM.

Currently Active Users: 2221 (0 members and 2221 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636