Solved

bootstrap - move text over on portrait mobile device

Posted on 2014-02-21
12
344 Views
Last Modified: 2014-02-26
How do I move "TAP to Call...." which appears at the bottom of the screen on a mobile device over to the right more but only when viewing portrait orientation?  It looks fine in landscape on a phone.  

Link
http://nsitedesigns.com/nsitedesigns/wiplastic_scott/index.html

Screen shot
http://screencast.com/t/Qbp12uX5Lug
0
Comment
Question by:nsitedesigns
  • 6
  • 6
12 Comments
 
LVL 58

Expert Comment

by:Gary
Comment Utility
I'd remove this
img.phone_icon {
    padding-right: 30px;
}


Add this
. clickphone {
min-width:120px
}


And change your tap to call div to 7 cols
<div class="col-xs-7 clicktocall">
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
I would probably add text-align: right; to the .clickphone class above as well to main a consistent space between the phone and text
Or better still just put the phone and text in one div with the anchor - doesn't make sense to say Tap here and then they have to tap the phone...
0
 

Author Comment

by:nsitedesigns
Comment Utility
would i also need to change the <div class="col-xs-4 clickphone"> to <div class="col-xs-5 clickphone">  so the "7" and the "5" equal 12?
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
No, not necessary, but see my comment just above, in case you missed it.
0
 

Author Comment

by:nsitedesigns
Comment Utility
also, do you think it is confusing on the "tap to call" to have the phone icon there.  If they tap the phone, nothing happens.  we put it there to draw attention to the tap to call feature.  thoughts?
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
See above, it they click Tap here nothing happens ;o)
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:nsitedesigns
Comment Utility
if you hit the phone number itself (which is pretty small), it auto dials.  maybe i should just have the phone number in big numbers?

p.s.  isn't the grid about everything adding up to 12.  don't get why i don't have to change the
<div class="col-xs-4 clickphone"> to <div class="col-xs-5 clickphone">  so the "7" and the "5" equal 12?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
Doesn't need to add upto 12 but musn't exceed 12.

I would move the phone and text into one div with the anchor around them both.  Forget about separating them in columns and you're done.
0
 

Author Closing Comment

by:nsitedesigns
Comment Utility
great - another item done!
0
 

Author Comment

by:nsitedesigns
Comment Utility
Cathal,

You seem to know bootstrap forwards and backwards.  Is there a site you can recommend I go to so I can learn?
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Don't know, I've only ever referenced http://getbootstrap.com/ for the correct classes to use.

I would say spend a day getting your head around how the grid system works - this is the core of Bootstrap and what it really is all about - everything else is just icing. I don't bother going out of my way to remember all the different button classes for example.

Play around with the sizing at different screens size, learn the difference between what lg, md, sm and xs is - commit this to memory and you know Bootstrap.
Then when you need a bit of extra styling just check the site for it.

You can search online for tutorials but a lot of them are for Bootstrap 2 which means they are no use since the CSS changed a lot in v3.
0
 

Author Comment

by:nsitedesigns
Comment Utility
ok - thanks for the advice.  : )
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Help in CSS 5 35
Joomla main HTML page 4 44
Custom CSS for Bootstrap Nav Bar 3 31
Editing login page in zencart. 2 13
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn how to count occurrences of each item in an array.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now