WC3 compliant CSS

Posted in: Newspaper
Post count: 109

Hi,

I added ACV to the template and everything is working out well, until I tested the W3C validation

I added this Css to the custom panel to display prices. I bet there is a better way, was wondering if anyone would be so kind as to rewrite this for me so that i am w3c validated.

Also so that it works and renders for iphone, ipad..

I would be most grateful.

Please?

.disclaimer {
font-size: .9em;
color : #aaa;
text-align : left;
font-style: italic;
}

.retailprice {
font-size : 13px;
font-style: normal;
font-weight: normal;
color : #ff000;
text-align : left;
text-decoration: line-through;
}

.price {
font-size : 15px;
color : #dd3333;
font-weight: bold;
text-align : left;
}

Thank you so much.

Post count: 7909

Hi,

As you can see our demo site also has more errors when checked with the validator: https://validator.w3.org/nu/?doc=http%3A%2F%2Fdemo.tagdiv.com%2Fnewspaper%2F

Almost all big themes have similar errors on W3C validator and this errors are not related especially to your css for prices. The most common error as style inside div error appear, any custom css added in Theme Panel > Custom Css will create this error, as the coded will be included in the style tag – http://screencast.com/t/9mAXvKefVyCFhttp://screencast.com/t/ernoJD6q If you don’t want this error a solution is to not use Custom Css from Theme Panel and add your code directly in the style.css file. You should ignore them, they are not important.

Thanks!

Post count: 109

Is the css I did good? Or is there better code to render for devices?

Post count: 7909

Hi,

The code is fine, I have checked your page on different device view and did not found any issues.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.