cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I set line-height in html listings?

I've tried line-height within a <p> tag but this had no effect. Is there another way I should be doing it?

Message 1 of 21
latest reply
20 REPLIES 20

How can I set line-height in html listings?


@openmedesigns wrote:

I've tried line-height within a <p> tag but this had no effect. Is there another way I should be doing it?


Try <br>

 

 

Have a great day.
Message 2 of 21
latest reply

How can I set line-height in html listings?

Is there another way I should be doing it?

 

Have you tried a simple wysiwyg (what you see is what you get) html editor program?  You don't have to type all that  code in yourself, the program generates it for you including all the formatting including photos linked to outside storage other than ebay.   There are a few free shareware programs, KompoZer is a rather simple one.  You just have to copy/paste the html view into the ebay sell form or you can save it for another day. 

Message 3 of 21
latest reply

How can I set line-height in html listings?

By "line-height" do you mean the literal height of a line or do you mean the height of the letters/text/line of type?

 

If it is text them you use <font size=2> and then experiment with 3,4,5, etc until you find the height you want.

"Laissez-faire capitalism (AKA The Great Material Continuum) is the only social system based on the recognition of individual rights and, therefore, the only system that bans force from social relationships." ~ Ayn Rand
Message 4 of 21
latest reply

How can I set line-height in html listings?

@kensgiftshop 

"<br>" styles a break. Not a paragraph.

 

@richard17 

 

"line-height" as in the attribute line-height. "font-size" is a different attribute.

Message 5 of 21
latest reply

How can I set line-height in html listings?


@openmedesigns wrote:

I've tried line-height within a <p> tag but this had no effect. Is there another way I should be doing it?


I just tested this in a draft listing and had no issues. What code did you try? This worked for me:

 

<p style="line-height:1.5">
Message 6 of 21
latest reply

How can I set line-height in html listings?

<p style="line-height:1.5; font-size:16px; font-weight:normal; color:#000000; text-align:left; padding:0px 0px 0px 0px; font-family:sans-serif;">

Ebay calls all of the over attributes in that tag, but line-height does not work. I've also just tried line-height on its own and that didn't work either.
Message 7 of 21
latest reply

How can I set line-height in html listings?

I just put your code into a draft and the line height worked fine. You must have some other code getting in the way? Do you have an active listing I can look at?

Message 8 of 21
latest reply

How can I set line-height in html listings?

You can find a listing here.

https://www.ebay.co.uk/itm/Happy-Birthday-Daddy-Greetings-Card-kinky-naughty-funny-love-bdsm-ddlg/16...

I've added a crazy line-height to the "Hi! I'm Neil" paragraph of 50. But as you can see, it's not actually applied in. In fact, in the source code, I'm not entirely sure what's going on and can't even find a value of 50. Does Ebay strip out inline coding?
Message 9 of 21
latest reply

How can I set line-height in html listings?

I don't see line height in the frame's coding. I see this:

 

<p style="font-size:16px; font-weight:normal; color:#000000; text-align:left; padding:0px 0px 0px 0px; font-family:sans-serif;">Hi! I'm Neil.
Message 10 of 21
latest reply

How can I set line-height in html listings?

Is your issue that the line-height coding is being stripped out when you save the listing, or that the coding is there but not being read? I'm not seeing your line height code in the example listing provided.

 

Tagging in @shipscript to get another set of eyes on this.

Message 11 of 21
latest reply

How can I set line-height in html listings?

Yes for some reason it's stripping out line-height. This is what I'm adding to the edited description:

<p style="line-height:50; font-size:16px; font-weight:normal; color:#000000; text-align:left; padding:0px 0px 0px 0px; font-family:sans-serif;">

Then click Revise with displayed fees. Then view listing. It doesn't show up so I then click Revise listing and Ebay had stripped out the line-height part that I've just added. I'm very confused!
Message 12 of 21
latest reply

How can I set line-height in html listings?

Taking a wild guess here... maybe line height 50 is too large for the system to accept. Set it at 1.5 or 2 and save the listing then come back and confirm so we can take a look.

Message 13 of 21
latest reply

How can I set line-height in html listings?

Nope, I did that initially as 1.5. Still didn't work. I thought maybe 1.5 might be ebay's default so increased it to 50 just to see. Still nothing. It's stripping out that whole attribute.
Message 14 of 21
latest reply

How can I set line-height in html listings?

I'm not sure what's going on. I used the exact code from your listing and added in line-height. It saved fine to the draft. I didn't publish the listing live so I don't know if that's making a difference somehow... but I don't see why it would.

 

Can you create a new listing and save it as a draft to see if the line-height will be accepted in the draft form?

 

Hopefully shipscript will have some ideas for you when she sees this.

Message 15 of 21
latest reply