The MLP Arena

TCB => Trader & Shipping Support => Topic started by: bluerose9978 on August 01, 2017, 05:28:37 AM

Title: Is there someone here good with using HTML code that could help me?
Post by: bluerose9978 on August 01, 2017, 05:28:37 AM
With Photobucket changing its rules and deciding to go rogue, I decided to go to Flickr. It's great for hosting pictures that I can use here. But my problem is I'm not good at writing code and I can't figure out how to write the code with Flickr to make my auctions look nice again. Or if there is a better hosting site where I don't have to write code (like Photobucket used to be), please let me know!
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: Duenia on August 01, 2017, 07:46:09 AM
What are you trying to accomplish exactly?

Just getting the HTML code to make an image appear? Or do you need formatting as well?

Your basic just get the image to show up would be this:
Code: [Select]
<img src="IMAGE-URL-HERE" />
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: bluerose9978 on August 01, 2017, 07:52:12 AM
What are you trying to accomplish exactly?

Just getting the HTML code to make an image appear? Or do you need formatting as well?

Your basic just get the image to show up would be this:
Code: [Select]
<img src="IMAGE-URL-HERE" />

Yes, just the image and have it centered. Everything I have tried hasn't worked.
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: Duenia on August 01, 2017, 07:59:18 AM
To center your best bet would probably be

Code: [Select]
<img src="IMAGE-URL-HERE" style="margin:0 auto;display:inline-block;" />

But depending on the layout you're placing it into it may not always work. If it doesn't giving the image a width can sometimes make a difference.

Code: [Select]
<img src="IMAGE-URL-HERE" style="margin:0 auto;display:inline-block;width:400px;height:auto;" />

The 400px can be changed to whichever width you need.
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: bluerose9978 on August 01, 2017, 08:17:23 AM
I'll give it a try in a couple minutes.

EDIT: It worked! Thanks so much! And such an easy code! I looked on the net and it was talking about a bunch of stuff I didn't understand...

As for centering it I just used what I have been using: <p align="center">
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: Duenia on August 01, 2017, 08:34:30 AM
I'll give it a try in a couple minutes.

EDIT: It worked! Thanks so much! And such an easy code! I looked on the net and it was talking about a bunch of stuff I didn't understand...

As for centering it I just used what I have been using: <p align="center">

Heads up on that one. It may fail at some point. It's deprecated code (meaning it's no longer considered a standard) and support for it is not required.
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: heathersmoo on August 01, 2017, 09:10:11 AM
And Duenia saves the day!   :newpony: :joy: :cheer: :dance: :party: :green: :hearts: :grouphug: :newpony:
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: bluerose9978 on August 01, 2017, 09:17:38 AM
I'll give it a try in a couple minutes.

EDIT: It worked! Thanks so much! And such an easy code! I looked on the net and it was talking about a bunch of stuff I didn't understand...

As for centering it I just used what I have been using: <p align="center">

Heads up on that one. It may fail at some point. It's deprecated code (meaning it's no longer considered a standard) and support for it is not required.

Gotcha. Well, when that day comes, I may need help again. I'm sure a lot of the code I use right now isn't supported much anymore and may fail in the future and I will need help again. Gotta love changing times. Thankfully eBay supports it for now.
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: Duenia on August 02, 2017, 07:13:14 AM
I'll give it a try in a couple minutes.

EDIT: It worked! Thanks so much! And such an easy code! I looked on the net and it was talking about a bunch of stuff I didn't understand...

As for centering it I just used what I have been using: <p align="center">

Heads up on that one. It may fail at some point. It's deprecated code (meaning it's no longer considered a standard) and support for it is not required.

Gotcha. Well, when that day comes, I may need help again. I'm sure a lot of the code I use right now isn't supported much anymore and may fail in the future and I will need help again. Gotta love changing times. Thankfully eBay supports it for now.

It's not a matter of whether or not eBay supports it. It's a matter of whether the user's browser supports it (think Internet Explorer, Google Chrome, Firefox etc...). I believe it's still in there for legacy support - but it could also disappear at any time so it may appear correctly for some people viewing your listing - but for others it would appear as if you had never aligned it.

It's one of those things where you have to weigh consistency for your users vs effort you'd like to put in because each browser interprets code differently. That's why occasionally you'll see some sites specify something along the lines of "Please view this website in Firefox (or Chrome)". It just means the site was not built to support IE so you're likely to experience issues.
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: bluerose9978 on August 02, 2017, 07:29:55 AM
Thanks for the info. But even if the pictures aren't centered it'll look OK just a little strange. So it's not a huge biggie. I actually thought of using 3 pictures in a row so I wouldn't have to center them and I may do that in the future.
Title: Re: Is there someone here good with using HTML code that could help me?
Post by: Duenia on August 02, 2017, 07:57:38 AM
No problem :)
SimplePortal 2.3.5 © 2008-2012, SimplePortal