Solved

aligning div

Posted on 2013-06-19
3
310 Views
Last Modified: 2013-06-22
hi,

I am trying to align the facebook div on www.piratescove.ie lined up with the slider, i have tried changing size of if but no luck ?
0
Comment
Question by:jonathanduane2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Expert Comment

by:Sam Simon Nasser
ID: 39260753
are you using CMS (joomla, drupal, etc) or just static HTML?

if HTML, i would put the slidehsow and facebook in a table, with fixed heigth ... assume slideshow height is 300px, so make the facebook height 300px and the table height px is 300
0
 
LVL 9

Expert Comment

by:COANetwork
ID: 39260773
you are displaying the facebook widget in an i-frame.  You are probably changing the size parameters on the SRC URL of the i-frame, but that changes the size of the widget facebook returns to you, not the size of the i-frame itself.  plus the i-frame is in a DIV, which also has it's own size.  you need to change the size of the DIV that hosts the i-frame.  
And probably change the alignment of the slider div.  This was soooo much simpler with tables! :)
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 435 total points
ID: 39261897
You have an empty <header> element in the left hand column that has a bottom margin - this is pushing the slider down:

<header class="entry-header"></header>
.entry-header { margin-bottom: 1.71429rem; } //line 969 of stylesheet.

Open in new window

You can either remove the <header>, remove the margin, or add a top padding to the secondary column:

#secondary { padding-top: 1.71429rem; }

Open in new window

Several different ways to do it :)
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

752 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