Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

@media CSS not work in "Custom Code" option

Featured Lock Resolved Bug
I'm trying to replace default css code by writing it in Custom Code field, this code:

@media only screen and (max-width: 479px)
h1 {
font-size: 40px !important;
}

But nothing happend! The template still displays the old code!
Look at screenshots.

how to solve a problem?

Attachments (2)

  • http___ch89350-joomla-1.tw1.ru_administrator_index.php_option=com_templates&view=style&layout=edit&.jpg
    http___ch89350-joomla-1.tw1.ru_administrator_index.php_option=com_templates&view=style&layout=edit&.jpg 40 KB
  • css.jpg
    css.jpg 86.5 KB

3 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
every broken code doesn't work, it's obvious.

Please compare how it should look like:

@media only screen and (max-width: 480px) {
h1 {font-size: 40px !important;}
}


you forgot about open and close { }
please study harder your CSS book.

Attachments (1)

  • custom_css_field_helix3.png
    custom_css_field_helix3.png 9.9 KB

amigolab

More than a month ago #Permalink
Hi,
every broken code doesn't work, it's obvious.

Please compare how it should look like:

@media only screen and (max-width: 480px) {
h1 {font-size: 40px !important;}
}


you forgot about open and close { }
please study harder your CSS book.


THANK YOU! Working!


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 114
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 113
Toufiq

Toufiq

Total Accepted Answers: 58
Pavel

Pavel

Total Accepted Answers: 4
Mohammed Ahmed

Mohammed Ahmed

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us