Why is my item description HTML not showing any style?

fabes01
Community Member

So its my first time creating a template for my item descriptions. I used VS code to write my HTML CSS and Java. After finishing and reading some posts on the subject I changed my code to style my css in-line HTML. I removed my <head> and <body> tags. When I preview my item, the description shows my HTML content without any style. I have also tried removing the Java without any luck. 

Any help will be much appreciated.

I would like to show my code but its quite long.

Message 1 of 5
Latest reply
4 REPLIES 4

Re: Why is my item description HTML not showing any style?

gec2002
Community Member

Try placing a hard element ahead of the stylesheet, designating the stylesheet as a body element. eg
<br style="display:none" />
<style>CSS Stylesheet</style><div>....</div>

eBay sets up the page with its own headers hence no <body>, <head>

Javascript isn't allowed, you see eBays policy against it in help.

---------------------------------------------------
Profanity is no substitute for wit.
Message 2 of 5
Latest reply

Re: Why is my item description HTML not showing any style?

I tried using the hard element at the beginning as you said without any luck. I removed any code that might interfere with eBays own code like styling p elements without assigning a class  also removed the universal * style. Not sure where to go from here.

Message 3 of 5
Latest reply

Re: Why is my item description HTML not showing any style?

go to HELP at top of page and conduct a 'live chat'

Message 4 of 5
Latest reply

Re: Why is my item description HTML not showing any style?

Possibly a semantics issues with the HTML but without seeing what you have written its hard to pick.  A couple of other suggestions are

Is the CSS stylesheet hosted on a server? If so it needs to be secure same as for hosting images,  also remove  doctype declaration if you have it.

---------------------------------------------------
Profanity is no substitute for wit.
Message 5 of 5
Latest reply