0

I made a logo design below. On large screens it works ok but when I decrease the window size enough the right side of the logo gets cut off. I'd like for it to not be cut off and resize with the window instead. I could just use a media query here but I feel like I'm drastically missing something here. Any thoughts?

#back {
  background: white;
  color: #fff;
  padding-top: 150px;
  overflow: hidden;
}
#back .title {
  font-size: 7em;
  color: #074f66;
  margin-top: 0;
}
#back .title .highlight {
  color: #eebf3f;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<section id='back'>
  <div class="col-md-5 col-sm-4 col-xs-12">
    <div class='text-center'>
      <h2 class="title">my<span class="highlight">Logo</span></h2>
      <div class="bottom-spacer">
      </div>
    </div>
  </div>
  <!--//col-->
</section>
vanburen
  • 21,502
  • 7
  • 28
  • 41
Jeff Burghess
  • 381
  • 1
  • 6
  • 16

3 Answers3

0

You could detect the mobile and Increase the size manually if needed

Mobile Device Detection in asp.net

How do I detect a mobile browser in a .NET MVC3 application

Community
  • 1
  • 1
Arun Prasad E S
  • 9,489
  • 8
  • 74
  • 87
0

Nop. You have only 2 options:

1) JS

2) Mediaqueries

Developer
  • 4,158
  • 5
  • 34
  • 66
0

Just use a media query to change whatever rules at whichever breakpoint you want to see changes at.

See MDN Using Media Queries & @Media along with Bootstraps default settings: Bootstrap Media Queries.

Example CSS

@media (max-width: 767px) {
  .title {
    font-size: 4em;
    color: red;
  }
}

Working Example:

.title {
  font-size: 7em;
  color: #074f66;
  margin: 0;
}
.title .highlight {
  color: #eebf3f;
}
@media (max-width: 767px) {
  .title {
    font-size: 4em;
    color: red;
  }
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<h2 class="title text-center">my<span class="highlight">Logo</span></h2>
vanburen
  • 21,502
  • 7
  • 28
  • 41