Jump to content


Photo
- - - - -

Help with responsive divs

CSS div responsive

Best Answer Danny , 24 February 2013 - 11:40 AM

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.

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 Steve Webb

Steve Webb

    Member

  • Members

  • 22 posts
  • LocationCANADA
  • Framework Version:Current
  • Country: Country Flag

Posted 24 February 2013 - 02:50 AM

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:

Please Login or Register to see this Hidden Content

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:

Please Login or Register to see this Hidden Content

 

And here is the pertinent CSS:

 

Please Login or Register to see this Hidden Content

 

Please help!!

Thanks so much!

 

-m



#2 batman

batman

    Bat Learning

  • Members

  • 2108 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 24 February 2013 - 03:08 AM

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. 

Please Login or Register to see this Hidden Content

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. "



#3 Steve Webb

Steve Webb

    Member

  • Members

  • 22 posts
  • LocationCANADA
  • Framework Version:Current
  • Country: Country Flag

Posted 24 February 2013 - 03:38 AM

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



#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 16313 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 24 February 2013 - 11:40 AM   Best Answer

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.



#5 Steve Webb

Steve Webb

    Member

  • Members

  • 22 posts
  • LocationCANADA
  • Framework Version:Current
  • Country: Country Flag

Posted 25 February 2013 - 12:08 AM

That worked!!

Thanks so much you guys.

You're all awesome.

I love pagelines.







Also tagged with one or more of these keywords: CSS, div, responsive