TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,027
  • Total Topics: 21,334
  • Online today: 519
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 244
  • Total: 244

Adding css to articles?

Started by Vapor, January 01, 2016, 04:09:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vapor


Link to my forum: teamisolation dot net
SMF version: 2.0.11
TP version: 1.2
Default Forum Language: English
Theme name and version: DayBreak 2.0
Browser Name and Version: Firefox 43.0.2
Mods installed:
Related Error messages: no errors

Just wondering the best way to add this css to my frontpage articles?

display: block;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
float: none;
z-index: auto;
width: 100%;
height: auto;
position: static;
cursor: default;
opacity: 1;
margin: 0;
padding: 15px;
overflow: hidden;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
font: normal 16px/1 "Times New Roman", Times, serif;
color: rgba(255,255,255,1);
text-align: center;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
background: #736b59;
-webkit-box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.3) ;
box-shadow: 1px 1px 1px 0 rgba(0,0,0,0.3) ;
text-shadow: 1px 1px 1px rgba(0,0,0,0.2) ;
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
-webkit-transform: none;
transform: none;
-webkit-transform-origin: 50% 50% 0;
transform-origin: 50% 50% 0;


illori

it is best to put it in a css file and call it in the header like normal css files are. but you can do it inline just not as clean. you should not though try to redeclare a header section and put it there as that is not valid.

Vapor


This website is proudly hosted on Crocweb Cloud Website Hosting.