Jump to content
TNG Community

Custom CSS


windsurfer

Recommended Posts

Just upgraded to V14

Just wondering if there is a way to modify a templates css so it doesn't get overwritten by an update or should i copy the template and give it a different name ?

Link to comment
Share on other sites

In every template css folder, there is a mytngstyle.css file which should not be overwritten when upgrading. There should you put your css modifications.

Link to comment
Share on other sites

windsurfer

Working with template 13  I want to edit some css for the main image which is located in root/css/genstyle.css 

.rounded10 {
    border-radius: 10px;
    margin-right: 181px;
    margin-bottom: 50px;
}

I added the below to the root/css/mytngstyle.css but it will not pick that up. Am i doing something wrong

 .rounded10 {
    left-margin: 300px;
}

There is no css for this in the template css

Link to comment
Share on other sites

Try to include your css here : /templates/template13/css/mytngstyle.css

And if it does not give immediately the expected result, you may add !important, this way :

.rounded10 {
    left-margin: 300px!important;
} 

 

Link to comment
Share on other sites

The !important comes after the value of the property value pair declaration, preceded by at least one space!

 

.rounded10 {
    left-margin: 300px !important;
} 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...