19
Social Marketing that Performs

Fast Guide to Dominate CSS

Embed Size (px)

Citation preview

Page 1: Fast Guide to Dominate CSS

Social Marketing that Performs

Page 2: Fast Guide to Dominate CSS

Fast Guide to Dominate CSS

Page 3: Fast Guide to Dominate CSS

What does it do? CSS is used to give style to an HTML

this means

CSS is used to define the appearance (design) of an HTML

HTML with CSSHTML without CSS

Page 4: Fast Guide to Dominate CSS

How does it work?

For each change that you wish to do to the

appearance of your HTML you must create a rule on

CSS

A CSS rule consists of:

Selector {

Attribute: Value;

}

Which can be translated to:

WHERE to make the change {

WHAT change make: HOW MUCH change make;

}

Page 5: Fast Guide to Dominate CSS

ComponentsA CSS rule consists of:

Selector {

Attribute: Value;

}

Selector: Is an element or contentThat can be found on your HTML

It can be a text, an image, a video, a button,

anything that you have set on your screen!

Page 6: Fast Guide to Dominate CSS

ComponentsA CSS rule consists of:

Selector {

Attribute: Value;

}

Attribute: It is a property or characteristicthat the selected content has.

It can be the size, the position, the color, the font,

the background, or even the very same presence

of the content, since you have the possibility of

removing it from the screen!

Page 7: Fast Guide to Dominate CSS

ComponentsA CSS rule consists of:

Selector {

Attribute: Value;

}

Value: Is the meassure in which a value is specified.

This definition can be expressed as a

percentage, an amount of pixels, a hexadecimal

combination, a url, or any otherone depending on

which was the selected attribute.

Page 8: Fast Guide to Dominate CSS

How do I apply it on TFM? On the “Whitelabel” step, on the

“Application style sheet” step,

click on the full screen icon to

visualize the loaded content on

each scren of your app and

therefore be able to select it to

write your own CSS rules.

Page 9: Fast Guide to Dominate CSS

How do I apply it on TFM?

Just click over an element, and then the selector and the structure of the CSS

rule will automatically appear on your left panel so you can complete them with

the attributes and values that you wish.

Once you define them, click on the save icon and you’ll be able to watch the

changes on the screen!

Page 10: Fast Guide to Dominate CSS

Some Examples

Page 11: Fast Guide to Dominate CSS

Examples To remove a content:

Selector {

Display: none;

}

Attention: When applying this change all the content that

was written under the deleted selector will be

moved upwards.

Page 12: Fast Guide to Dominate CSS

Examples To hide a content:

Selector {

Visibility: hidden;

}

Attention: When applying this change all the contents will

remain on their original positions since the hidden

selector, that is no longer visible on screen, will

still occupy its designated space.

Page 13: Fast Guide to Dominate CSS

Examples To change the position of a content:

Selector {

Position: relative;

Top: 50px;

Right: 200px;

}

Page 14: Fast Guide to Dominate CSS

Examples To change the color of a content:

Selector {

Color: #F781D8;

}

Page 15: Fast Guide to Dominate CSS

Examples To change the size of a typography:

Selector {

Font-size: 50px;

}

You can also add to this rule:Font-family: Courier New;

Font-weight: bold;

Text-align: center;

Text-transform: uppercase;

Page 16: Fast Guide to Dominate CSS

Examples To change the background of a content:

Selector {

Background:

url(http://tfmadmin.s3.amazonaws.com/Demo/LogoTFM.png);

}

You can also add to this rule:Background-repeat: no-repeat;

Background-size: 50%;

Background-position: 100px 200px;

Page 17: Fast Guide to Dominate CSS

ExamplesTo apply a change to a specific screen of the app, add theprefix that corresponds:

.home.registered Selector {

Attribute: Value;

}

Prefixes by Screen:

Preview: .comingPromos

Home: .home

Home Variants:

Home – Before Entering: .home.start

Home – After Entering: .home.registered

Home – Ended Action: .home.finished

Register: .register

Ranking: .viewentries

Specific Participation: .entry

Page 18: Fast Guide to Dominate CSS

Examples To write an internal note that serves as a reminder orexplanation:

/* Write your text between this signs */

Page 19: Fast Guide to Dominate CSS

For more information, contact:

[email protected]