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 08-26-2013, 07:15 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,916
Infernette is on a distinguished road
Default A way to make rounded borders around daycare pets?

I've been trying to make a rounded border around daycare pets (and various other things I'm working to use it on!) and I've tried the <p style> one, and it has no syntax errors but it just doesn't show. Is there anyway to do this?

Thank you for any help, <3
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #2  
Old 08-26-2013, 08:30 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 114,160
Abronsyth is on a distinguished road
Default

You can't just use <td style="border-radius:15px;"> for it? Build a table around the daycare system..? ((I'm really exhausted so I might not be logical right now)).
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #3  
Old 08-26-2013, 09:35 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,916
Infernette is on a distinguished road
Default

I'm trying to get it around each egg in the daycare, so I don't know if that'd work XD
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #4  
Old 08-26-2013, 10:16 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,414
IntoRain is on a distinguished road
Default

Adding borders to images? It can be done in the CSS but not sure if would affect every image in the site. HTML has a border attribute by default ('<img src="<?php echo $adopt->getImage("gui") ?>" width="" height="" border="" alt="" />' not sure if <?php echo $adopt->getImage("gui") ?> is correct tho), but I think you would have to change the way daycare displays pets, not sure if the Array accepts HTML linked images as objects... If you really want a rounded table... Maybe make a table for each adopt? xD
__________________


asp.net stole my soul.

Last edited by IntoRain; 08-26-2013 at 10:20 PM.
Reply With Quote
  #5  
Old 08-27-2013, 05:55 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,916
Infernette is on a distinguished road
Default

It seems to not allow html in the image for the daycare - it gives an error about rendering. I really don't know what to do about it then- the table may work but i don't know if it'll have the right borders that I need (and color inside XD).


It's odd because html works in the myadopts table and whatnot, so I may have to find a .php way to do it. And there are multiple images on the page so I don't think css will work D: (Let alone do I know where to put it!)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #6  
Old 08-27-2013, 06:32 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,414
IntoRain is on a distinguished road
Default

I haven't worked with CSS but I believe images in html go get their properties if you add a class="css_classname" inside the <img src...> tag, but no idea how classes in CSS are created or work either sorry ._. for tables I think you have to use CSS to make them rounded too, maybe someone who understands css can help Dx
__________________


asp.net stole my soul.
Reply With Quote
  #7  
Old 08-27-2013, 06:56 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,710
Tequila is on a distinguished road
Default

Try adding this a new class to your css (use the existing as an example) and use the classname in the image tag as IntoRain has suggested.

ex (replace Xs with your options):
PHP Code:
.daycare {
border:1px solid #XXXXXX;
margin:5px;
padding:2px;

The margin will push the border away from the image, and the padding will help align it on the page better.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #8  
Old 09-03-2013, 08:00 AM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,916
Infernette is on a distinguished road
Default

how exactly does one go about putting that example into the image code, tequila. I've looked in a lot of places but I can't find it for the life of me, and is there any way to apply it to text too XD I hope I'm not being too much of a bother with this- I just want to focus on my site looking really pretty now! :)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #9  
Old 09-03-2013, 08:27 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 340,939
Hall of Famer is on a distinguished road
Default

Well for each HTML form element, you can look up its ID or class by viewing page source from FF/Chrome, then add CSS element for these particular ID/Class. You can modify the script, and add a class for each HTML element manually. This is one example:

PHP Code:
$image = new Image("image.png");
$image->setClass("daycare_image"); 
It can be a bit tricky though, to locate the image GUI object in a script file and operate on this very object. In Mys v1.3.4 I've provided a new feature called additional css, which can be manipulated through ACP. This way you can create different css for various pages, read the blogpost for more information if you are interested:
http://www.mysidiaadoptables.com/forum/blog.php?b=82
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #10  
Old 09-03-2013, 05:41 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,916
Infernette is on a distinguished road
Default

So I managed to get the css border around it- but now It's doing this :
http://i43.tinypic.com/28c33x3.png
when I attempt to add words.


And this is the CSS:
divide{
padding-top: 15px;
height: auto;
border: 2px solid #000000;
border-radius:5px;
background-color: #E1E1E1;

}

What... am I messing up?
__________________
No, I have no idea what I'm doing. But it works. Barely.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make pets' trade status Not For Trade by default tahbikat Questions and Supports 3 12-13-2015 10:21 PM
Only display pets a user hasn't clicked in daycare Hwona Suggestions and Feature Requests 3 08-16-2014 04:53 PM
A way to exclude pets from daycare? Infernette Questions and Supports 3 08-05-2013 10:20 AM
Is there a way I can make groups to organize pets? MaximumRide Questions and Supports 3 04-25-2012 03:51 PM
Make users make their own website on your site ... kitty08 Mys v1.2.x Mods 0 10-27-2011 03:49 PM


All times are GMT -5. The time now is 05:04 PM.

Currently Active Users: 9535 (0 members and 9535 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636