diff --git a/static/css/ads.css b/static/css/ads.css new file mode 100644 index 0000000..0e3236f --- /dev/null +++ b/static/css/ads.css @@ -0,0 +1,27 @@ +.mobileShow { + display: none; + margin-left: auto; + margin-right: auto; +} + +/* Smartphone Portrait and Landscape */ +@media only screen + and (min-device-width : 320px) + and (max-device-width : 480px){ + .mobileShow { + display: inline; + } +} + +.mobileHide { + display: inline; + margin-left: auto; + margin-right: auto; +} + +/* Smartphone Portrait and Landscape */ +@media only screen + and (min-device-width : 320px) + and (max-device-width : 480px){ + .mobileHide { display: none;} +} \ No newline at end of file diff --git a/templates/blog/render_text.html b/templates/blog/render_text.html index afb3a5c..920caa1 100644 --- a/templates/blog/render_text.html +++ b/templates/blog/render_text.html @@ -6,12 +6,40 @@