Advertisement:

Author Topic: align button  (Read 1240 times)

Rui Branco

  • Newbie
  • *
  • Posts: 23
align button
« on: November 28, 2013, 02:38:38 am »
hi,

I can not keep aligned the button when using internet explorer.
I've tried everything ... any ideas?


pete_mcal

  • Newbie
  • *
  • Posts: 2
Re: align button
« Reply #1 on: November 28, 2013, 07:05:12 pm »
I'm sure there'd be a way to add in conditional formatting for IE in the CSS? You may need to add more pixels to the margin or padding around the button that is being pushed to the side.

I'm not a coding expert so I can't tell you exactly how to do this, but I've seen conditional formatting for browsers implemented before. Just a suggestion to throw out there.

Good luck!

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: align button
« Reply #2 on: December 01, 2013, 01:12:41 am »
@Rui Branco
IE is very hard to handle, since it is not too good browser. I suppose you do not telling to IE what you want enough accurate.
Try to wrap those element into 1 wraper:

Code: [Select]
<div class="wrap" style="float:right;width:300px;">
  <div class="fb-button" style="float:left">Connect with facebook</div>
  <div style="clear:both"></div>
  <div class="links" style="width:300px;float:left">
    <a style="float:left" href="#">Link1</a>
    <a style="float:left" href="#">Link2</a>
    <a style="float:left" href="#">Link3</a>
    <a style="float:left" href="#">Link4</a>
  </div>
</div>

Hope it will work  8)

Rui Branco

  • Newbie
  • *
  • Posts: 23
Re: align button
« Reply #3 on: December 11, 2013, 06:35:14 pm »
Thanks  frosticek, today I will still try  :)

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: align button
« Reply #4 on: December 11, 2013, 07:21:50 pm »
I think Facebook forces floats and aligns so that movement catches attention, brilliant marketing gimmick! I've tried wrapping it in an auto width and relative & absolute positions - with a little luck- also preloading the script helps. not that I don't like Facebook and google ads, but Id rather have people stay on my site :-)