Why is my item description HTML not showing any style?
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.
4 comments
gec2002
·2 years agoTry 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.
fabes01
OP2 years agoI 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.
twyngwyn
·2 years agogo to HELP at top of page and conduct a 'live chat'
gec2002
·2 years agoPossibly 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.