Some tags are designed to be used or work only in the <head> section of the page such as some Javascript and all <meta> tags. Some tags such as <style> will work within the <body> tag even though it is considered "bad" coding.
Use <style> tags with caution. You MUST give classes/ids unique names, and define your tags such as <p>, <h1> with these classes/ids to avoid changing any predefined eBay styles. Changing ANY portion of eBays code can result in your listings being pulled, your eBay store being closed, or even suspension.
Members using the eBay site shall only modify or add content in those areas specifically designated for member use. All content must also abide by all other eBay policies. Designated member areas are the description area of the View Item page, the posting input or reply box on the eBay discussion, chat and help boards, the members’ About Me page, the feedback comments area of the Feedback Forum, the bid box and the eBay email system text box. In no case shall a user block, obscure, overwrite or modify any eBay generated content or pages. All other site locations or components of eBay pages are strictly for eBay use.
Wrong Way
The code as shown below would change eBays <p> and <h1> tags to YOUR styles!
h1 { font-family: verdana, helvetica, sans-serif; font-size: 16px; color: #7db171; }
p { font-family: verdana, helvetica, sans-serif; font-size: 12px; color: #292929; }
</style>
<h1>Headline</h1>
<p>Nunc eu orci mauris? Nunc congue, lorem sit amet varius gravida.</p>
Better Way
Using CSS to style HTML is actually the best way to code for eBay. It insures that your listing will always look the way that you intended, and will also look correct cross platform/browser.
h1.myheader { font-family: verdana, helvetica, sans-serif; font-size: 16px; color: #7db171; }
p.mytext { font-family: verdana, helvetica, sans-serif; font-size: 12px; color: #292929; }
</style>
<h1 class="myheader">Headline</h1>
<p class="mytext">Nunc eu orci mauris? Nunc congue, lorem sit amet varius gravida.</p>
Best and Correct Way
The best and proper way to style your HTML is to use inline styles. Yes, it means a little more coding, but you will never have to worry about over writing eBays styles, and your listing will always look the same, no matter how eBay changes the default styles for the description area.
<p style="font-family: verdana, helvetica, sans-serif; font-size: 12px; color: #292929;">Nunc eu orci mauris? Nunc congue, lorem sit amet varius gravida.</p>
Related posts:
- Video: How to Install your “me” Page on eBay
- Video: How to Create Custom eBay Store Pages
- Video: How to Install Custom eBay Store Navigation
- Video: How to Install Custom eBay Store Front Page
- Video: How to Install Custom eBay Store Header
- Video: How to Add eBay Store Banner & Description
- Helpful eBay Links
- Simple Click-to-Enlarge Photo Gallery
- Stylizing Links on eBay
- How Do I Add a Background Image or Color?
- Preventing Image Theft on eBay
- My Images Are Not Showing on eBay
- Hosting Your Own Photos/Graphics
- eBay: Which HTML Editor Should I Use?
- Writing HTML: eBay vs Web Pages
- Using Your Own HTML: Turbolister
- Using Your Own HTML: eBay Sell Your Item Form
- Background Color & Images – Not Tables!
- Images <img>
- CSS: Menu Lists
- CSS: Margin
- CSS: Border
- SEO: Image Optimization
- Menu Lists <ul>, Definition Lists <dl>
- CSS: Font Properties
- CSS Tutorials
- Javascript Tutorials
- KDWHD Tutorials
- eBay Tutorials
- SEO Tutorials
Comments
Leave a comment Trackback