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

Re: How can I set line-height in html listings?

@openmedesigns 

 

If the attribute is being stripped, then your browser is stripping it out. eBay's text editor relies on the editing engine built into the browser, so creating or modifying a listing using a different browser may result in a different code than you originally generated.  Perhaps the value without units is unrecognized  by the browser.  Since line-height:1.5 is the same as line-height:150%, you might try the percentage method to see if your browser strips it off.  If that fails, then try the original "px", which should be universally understood: line-height:30px;

 

What browser and OS are you using?

 

 

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 16 of 21
latest reply

Re: How can I set line-height in html listings?

Just tried a draft listing with just a bunch of dummy text and no other html at all.

<p style="line-height:50px; font-size:16px; font-weight:normal; color:#000000; text-align:left; padding:0px 0px 0px 0px; font-family:sans-serif;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>

STILL didn't work. It STILL strips out line-height from that tag. I tried editing font-size to make sure at least something was changing and that worked fine.

I tried "Save for later" with the draft and when I come back to it, line-height has been removed from the code. It just really does not like line-height!
Message 17 of 21
latest reply

Re: How can I set line-height in html listings?

I'm using Firefox 70, Win 7. I've just tried Chrome 76 and same issue.

I've now tried stripping out everything but line height:

<p style="line-height:50px">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>

I STILL can't get that to work.
Message 18 of 21
latest reply

Re: How can I set line-height in html listings?

As far as I can tell, Firefox 70.0 is a beta version released a few days ago. I'd wait for the first patch or look for a bug reporting page.

 

https://wiki.mozilla.org/Releases/Firefox_70

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 19 of 21
latest reply

Re: How can I set line-height in html listings?

Also tried this:

<p style="line-height:50px; font-size:50px">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>

It will apply the 50px font size no problem, but still no line-height. I can add anything else in that P tag and it'll apply fine. Just not line-height.

I don't know if it matters, but I'm using ebay.co.uk and not .com. I don't see why that'd matter though.
Message 20 of 21
latest reply

Re: How can I set line-height in html listings?

Yes but I've tried in Chrome too. Same issue.
Message 21 of 21
latest reply