Toggle footer and change body height according to

I have a simple web page that contains a hideable footer. The footer does hide/show correctly but the body height as well as the vertical scroll bar that should be modified, does not. How can I modify the code in order to make the body resize when sh

How to make a mobile form friendly?

This question already has an answer here: Responsive website zoomed out to full width on mobile 2 answers I have some simple form, that looks good in browser: However when I load this page from mobile device, the form looks very small: What is the be

Drag a div without moving the neighboring content

I'm trying to create a side bar which will slide in and show the content when a user clicks a button. the problem that I'm having is when its clicked all the content on the header, body and footer are being moved. I want the sliding div to slide on t

Push col-md-6 div to the next row

I have the following layout: and I want the highlighted div to be moved to the next row, right below "Number of seats", so I thought adding a "col-md-offset-6" to it would place it just fine. However, the result is this: Code: <div

Find the symmetric element in an unordered list

Consider the following situation: <ul> <li></li> <!-- the minimum amount is at least 7 elements --> </ul> Let the indexes of the li elements be 1 2 3 4 5 6 7 In this situation, the middle element is 4. If I hover 5, 6, 7 I wa

How to keep the same width for columns

Is there any way to wrap the long text 'aaaaaaaaaaaaaaaaaa' and allow it to be multi-line for keeping the same width for columns? The width of .menu must be as long as possible!! .container { display: flex; flex-flow: column wrap; height: 300px; } .m

Div Max Width Alternate When Div Overflow

I am trying to limit the <div> max-width (without width) (max-width somewhere beyond screen length) when div gets a horizontal scrollbar (scrollbar when zoom or lengthy text in div). It is not possible but, what exactly can work for me, is browser t

Create an effect wherever the mouse goes

So I have been trying endlessly to try and do something similar too what this site is doing (http://whois.domaintools.com/). I'm trying to get a webpage, so wherever the mouse moves over the webpage, that kind of effect follows it (I'm sorry I don't

Center the pseudo-element

So I am trying to center this triangle to the center of the a element using CSS, here is the CodePen: http://codepen.io/DerekDev/pen/yyjqvd As you can see, when you hover over a menu item, the triangle is not center, but is off to the right side. .me

Can not get scroll animations to work with jquery

I'm busy developing a new website. Now, my problem is to add animations as fade in when the user scrolls down. I've tried various jquery scripts and methods for this. Even tried a simple script to add a class when scrolled down. Nothing works with th

Outlook truncated images 2007/2010/2013

I am building a responsive HTML email template, and when I Litmus test my layout, the images are being cut off at the top, as shown below... Any reason why this is? Here is some code, with a jsfiddle <table style="color: #4b4b4b; font-size:12px; f

type the list box with increase / create buttons

i want to make list box as shown picture to increase /decrease this box value. how to get this type of text box using jqueryui or css .please suggest , Demo Try this.. Xpos<input type="number" style='width:60px' value='66'></input> Y

How to show the picture always in a square

I want to show image inside the square of fixed dimension of 400 * 400. Hence to maintain the aspect ratio, it is possible that if width is more, then width would be reduced and remaining space as per the aspect ratio would be filled with some backgr

specific css div properties

I have a div : <div id="fancyboxID-1"> <p>0767380042</p> </div> and this css: ‚Äč #fancyboxID-1 p { font-size:150px; text-align: center; line-height:150px; overflow:hidden;} After I upload and refresh the website I don't se

100% height for the page with div, iframe, footer

I'm stuck with the problem and hoping someone can offer a solution. I found a similar post but no resolution on SO. Below is a small sample of my markup <div id="wrapper"> <div id="content"> Some text goes here <iframe s

Font and cross domain issues

please read all of this before commenting. I'm currently working on a large website which is hosted on Amazon Web Services (AWS). This allows us to use scalability features in situations where the website might take a big traffic load. Originally we

sort the column with the attributes listed in the data

I have to sort the rated data column in the datatable. The rated data contains star as the rating out of 5. the data is coming properly but it is not getting sorted. i m using theme roller css in datatables and data table is created with following co

Show / Hide button does not work on Mac

So the show/hide button works fine in all the browsers on Windows, but doesn't work as expected in Safari and Google Chrome on Mac. It either doesn't show/hide the list at all, or shows only partial items... I use (Son of) Suckerfish for the multi-le

opera insert box-shadow

Opera has had support for box-shadow since v10.5, but it doesn't work on an input element. input[type=text] { background-color: #fff; border: 1px solid #a0a0a0; box-shadow: inset 1px 1px 1px #d2d2d2; -o-box-shadow: inset 1px 1px 1px #d2d2d2; } <input

Simple accordion menu (jQuery)

jQuery: // ACCORDION $('.accordion .answer').hide(); // hide all $('.accordion .question').click(function(){ $('.accordion .answer').slideUp(); // hide all open $(this).addClass('active').next().slideDown(); // show the anwser return false; }); HTML: