Title: Issue with alignment
Last modified: August 19, 2016

---

# Issue with alignment

 *  [Dan Davies](https://wordpress.org/support/users/dansiop/)
 * (@dansiop)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/issue-with-alignment/)
 * Hi all,
 * bit of an od question.
 * I have this custom theme and all is almost working as I want it to.
 * If you take a look at my site here: [http://www.hotellameije.com/new](http://www.hotellameije.com/new)
 * You will see on the left hand side column there is a widget which shows special
   offers.
 * My aim was to get this to expand in size as the right hand content panel expands.
 * A perfect example would be looking at the home page here: [http://www.hotellameije.com/new](http://www.hotellameije.com/new)
 * and looking at this page – [http://hotellameije.com/new/prices/](http://hotellameije.com/new/prices/)
 * You can see that the box automatically expands when using this little bit of 
   js
 * <script type=”text/javascript”>
    <!– $(document).ready(function() { var divh 
   = document.getElementById(‘content’).offsetHeight; var target = document.getElementById(‘
   primary’); target.style.height = ( divh – 145 ) + “px”; }); //–> </script>
 * I am no expert with js but the issue comes in on certain pages such as this one:
   [http://hotellameije.com/new/restaurant/la-cartesample-menu/](http://hotellameije.com/new/restaurant/la-cartesample-menu/)
 * I think I have eliminated the issue to pages where I use rightpic which is a 
   small bit of css:
 * .rightpic {
    float:right; margin-left:15px; padding-left:20px;
 * }
 * Does anyone have a suggestion as how I could rectify this as its probably something
   small and frustrating and I do not know what to do to sort it out.
 * I would much appreciate it if someone could offer some advice or help.
 * Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Dan Davies](https://wordpress.org/support/users/dansiop/)
 * (@dansiop)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/issue-with-alignment/#post-1868185)
 * Anyone?
 *  Thread Starter [Dan Davies](https://wordpress.org/support/users/dansiop/)
 * (@dansiop)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/issue-with-alignment/#post-1868427)
 * Last chance to see if anyone can help me on this issue?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issue with alignment’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [Dan Davies](https://wordpress.org/support/users/dansiop/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/issue-with-alignment/#post-1868427)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
