All PostsDiscussionsBlogsIdeasQuestions
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
Discussions
eBay Australia logo
  • Home
  • eBay Announcements
  • Discussion Boards
      • eBay Announcements and Seller Releases
      • Community Feedback
      • Technical Issues
      • Buying
      • Selling
      • New to eBay
      • Ask a member
      • Clothing, Shoes & Accessories
      • Collectables & Art
      • Electronics
      • Sports, Books, Movies & Music
      • Vehicle Parts & Accessories
  • Answer Centre
    • Buying
    • Selling
    • Seller Tools
    • Payments
    • Shipping
    • Membership & Account
    • Search
    • Site Issues
  • Groups
      • Authenticated Handbags
      • Trading Cards
      • Authenticated Sneakers
      • Home & Garden
      • Community Spirit
      • Fun & Games
      • Cat Rules! - Everyday is Caturday -
      • United we Stand
      • the Circle
      • Daily selfies
  • eBay Help
    • Buying & SellingChevronRightIcon
    • SellingChevronRightIcon
    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.

    fabes01
    fabes01
    6View listings
    Posted 2 years ago·Last reply 2 years ago
                                           
             
    4 comments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
    gec2002

    gec2002

    ·2 years ago
    View listings

    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.

                                           
    fabes01

    fabes01

    OP2 years ago
    View listings

    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.

                                           
    twyngwyn

    twyngwyn

    ·2 years ago
    View listings

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

                                           
    gec2002

    gec2002

    ·2 years ago
    View listings

    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.

                                           
                                                                                     
    •                                                              
    •                                                              
    •