Custom CSS code for SPAN doesnt work.

5 replies · opened Jul 24, 2017

YyusufaydemirJul 24, 2017

Hi,

I have span tag in p tag. But i want to customize span for mobile version. Below custom.css code doesnt work. Can you help me?

<p data-animate="fadeInUp" data-delay="400" style="font-weight:bold">Perakende sektöründe <span class="vurgu"> Mobil </span> çözümler </p>

span.vurgu{
color:#FFC400 ;
font-size: 300%;
font-weight: normal;
font-family: 'Monoton', cursive;

}

@media(max-width: 767px){
span.vurgu {
color: #5C67DB ;
font-size: 100%;
}
}

@media(max-width: 640px){
span.vurgu {

	color:#5C67DB;
    font-size: 200%;
}

}

@media(max-width: 320px){
span.vurgu {
color:#5C67DB;
font-size: 200%;
}
}

YyusufaydemirJul 24, 2017

kirk2.co

SSemicolon WebSTAFFJul 24, 2017

Hello,

We have checked out your Website but could not find the Custom CSS Codes in your css/custom.css File: http://kirk2.co/css/custom.css .

Adding the Codes should automatically fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

YyusufaydemirJul 24, 2017

i was linked in my HTML code like responsive or dark.css . Is there anything else i need to do?

<link rel="stylesheet" href="css/custom.css" type="text/css" />

/* ----------------------------------------------------------------
Custom CSS

Add all your Custom Styled CSS here for New Styles or
Overwriting Default Theme Styles for Better Hanlding Updates

-----------------------------------------------------------------*/

.device-xxs .slider-caption p { font-size: 23px; }

@media (max-width: 767px) {
#copyrights .col_half:last-child {
display: block;
margin-top: 30px;
float: none;
text-align: center !important;
}

#copyrights .col_half:last-child .fright { float: none !important; }

#copyrights .col_half:last-child .social-icon {
    float: none !important;
    display: inline-block !important;
}

}

YyusufaydemirJul 24, 2017

if you look at my application via mobile version, easily you can see the issue in slider panel. Text in slider not responsive.

SSemicolon WebSTAFFJul 26, 2017

Hello,

Please find and delete the following code in the css/responsive.css File:

.slider-caption p,

You can add the following CSS Code to control the Font Size:

.device-lg .slider-caption h2 { font-size: 64px; }

.device-md .slider-caption h2 { font-size: 56px; }

.device-sm .slider-caption h2 { font-size: 48px; }

.device-xs .slider-caption h2 { font-size: 36px; }

.device-xxs .slider-caption h2 { font-size: 32px; }

This will definitely work fine. The Responsive Classes are as follows:

.device-lg – Class for Large Devices >=1200px

.device-md – Class for Medium Devices >=992px to 1199px

.device-sm – Class for Tablets

.device-xs – Class for Landscape Mobiles or Phablets.

.device-xxs – Class for Portrait Mobiles

Hope this Helps!

Let us know if we can help you with anything else or if you find any issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard