Jump to content
Steve Webb

Help with responsive divs

Recommended Posts

Steve Webb+    1
Steve Webb

Hi.

I am wondering if someone can help me.

I have some buttons on a page in my site that are driving me crazy.

Here is the page:

http://mattro.se/contact/

The Linkedin and Instagram buttons (divs) are supposed to be side by each, and continue to be side by each until the browser is so small that the containing div slips under the message box.  Right now, the 'linkedin button is slipping under the IG button long before  the containing div slips under.

Can someone PLEASE show me what im doing wrong here?

 

Here is the page code:

<div class="row"><div class="span12 well"><h1 class="contact">Pen me a letter</h1>[contact-form-7 id="460" title="Contact form 1"]</div>
</div>

<!--THIS IS THE CONTACT FORM 7 CODE-->

<div class="row"><div class="span4">
<p>Name (required)<br />
    [text* your-name] </p>

<p>Email (required)<br />
    [email* your-email] </p>

[checkbox WorkEnquiry "Work Enquiry"]

<p>Subject<br />
    [text your-subject] </p>

<p class="hidden-desktop">Message
[textarea messagemobile]</p>
<p class="hidden-desktop">[submit "Send"]</p></div>

<div class="span8"><div class="phone well hidden-desktop hidden-tablet"><a href="javascript:void(0)" onclick="window.location='tel:+12505807673'" title="Call me" class="tel"><h1><em class="icon-phone icon-2x"></em></h1></a></div>
<div class="row contact"><div class="span6 instag well"><a href="http://instagram.com/matroas" target="blank"><h1><em class="icon-camera-retro icon-2x"></em></h1></a></div>
<div class="span6 linkedin well"><a href="http://ca.linkedin.com/in/matroas" target="_blank"><h1><em class="icon-linkedin icon-2x"></em></h1></a></div>
</div>
<p class="fredquote hidden-phone hidden-tablet">"The connections we make in the course of a life - maybe that's what heaven is.  We make so many connections here on earth. Look at us; I've just met you, but I'm invested in who you are and who you will be, and I can't help it."
~ Fred Rogers</p>
</div>
</div>
<p class="hidden-phone hidden-tablet">Message<br />
    [textarea your-message] </p>

<p class="hidden-phone hidden-tablet">[submit "Send"]</p>

 

And here is the pertinent CSS:

 

.row.contact {
  min-width:100px;
}

.linkedin.well {
  margin:21px 5px;
  min-height:0;
  padding:0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  position:relative;
  min-width:50px;
}

.linkedin.well:hover {
  background:DarkSeaGreen;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
}

.linkedin.well:hover h1 {
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -ms-transition: all 1s;
  -o-transition: all 1s;
  transition: all 1s;
  color:white;
}

.linkedin.well h1 {
  margin:0;
  text-align:center;
  color:DimGray;
}

.phone.well {
  margin:21px 5px;
  min-height:0;
  padding:0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
}

.phone.well:hover {
  background: blue;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
  color:white;
}

.phone.well:hover h1 {
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -ms-transition: all 1s;
  -o-transition: all 1s;
  transition: all 1s;
  color:white;
  text-align:center;
}

.phone.well h1 {
  margin:0;
  text-align:center;
  color:DimGray;
}

.instag.well {
  margin:21px 5px;
  min-height:0;
  padding:0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
    min-width:50px;
}

.instag.well:hover {
  background: DarkOliveGreen;
  background: Tan;
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s;
  color:white;
}

.instag.well:hover h1 {
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -ms-transition: all 1s;
  -o-transition: all 1s;
  transition: all 1s;
  color:white;
  text-align:center;
  margin:0;
}

.instag.well h1 {
  margin:0;
  text-align:center;
  color:DimGray;
}

p.fredquote {
  font-family:'Reenie Beanie', cursive; 
  font-size:26px;
  color:grey;
  padding:0 0 20px 0;
  line-height:1.5em;
}

h1.contact {
  font-family: 'Pacifico', cursive;
  text-transform:none;
  font-size:55px;
  margin:0 0 15px 0;
  font-weight:lighter;
  color:DimGray;
}

 

Please help!!

Thanks so much!

 

-m

Share this post


Link to post
Share on other sites
batman    389
batman

Hi Matt

I see this rob´s reply in the forum 

 

"When using any dimension in px, the size is fixed, not responsive.  Your choices for responsive are percentages and em.

For example you can be changed by converting -400px to -25em.  For future reference, you may find this link helpful. http://pxtoem.com/

Keep in mind, you may have other aspects of these boxes set in non-responsive measurements. Please inspect them using Firebug or Chrome's Inspection Tool and customize your code accordingly. "


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Steve Webb+    1
Steve Webb

Batman,

 

Thanks for the reply, but I still don't get it.

Where should I make sizes in em or %?

Im really confused.  The responsive design is working other places like here: mattro.se/music/ but not on this contact page.

Right now I can barely resize the window without the linkedin button going under the IG button.

Its in the pl grid system, so I thought it would be working like it does elsewhere..

Can anyone help me make sense of this?

Thanks in advance!

-m

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Unfortunately, we are unable to provide support to user created custom code. However, your issue is most likely caused by the margins you have added to the buttons in the span, as you have added these button classes to the actual span6 div.

 

At the moment you have this:

 

<div class="span6 instag well">

 

I would recommend you try doing the following:

 

<div class="span6">

<div class="instag well">

 

And see if that works.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Steve Webb+    1
Steve Webb

That worked!!

Thanks so much you guys.

You're all awesome.

I love pagelines.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • lionel1
      By lionel1
      Hi,
      I use on my home page " impulse module " but when i look on my iPhone the image is cut and not responsive .
      i only have this problem with this module not with the other one .
      thanks for ur help
      website / www.elonakane.com 
      Lionel 
       
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • kwaoru
      By kwaoru
      Hi,
       
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
       
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
       
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
       
      Looking forward to hearing from you.
    • Paul
      By Paul+
      I have woocommerce store, product shows title and price fine until reduce screen with on a tablet/mobile phone the price and title gets removed?  Any ideas? 
      Here's an example page: https://thelaptopfixers.com/product/operating-system-re-install/
      Try it on both desktop PC browser then resize to mobile/cell phone size!  
      Thanks
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×