RSSCategory: Web Development

May

12

Vertically Align Text or Elements Using CSS

Posted by Leave a Comment

In the past, getting text or other elements to align vertically was often much harder than it should have been. Luckily, modern CSS makes this task much simpler; as simple as three lines actually.

First, we’ll create a container div with a border so we can see the parent element we want to align to:

Continue Reading

Sep

29

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode

Posted by Leave a Comment

You may sometimes receive the below error if adding a new library to an existing project. It is also a common error when running older applications originally built for IIS 6 on newer versions of IIS.

Error Summary
HTTP Error 500.22 – Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Luckily there are a couple of easy solutions to fixing this error:
Continue Reading

Aug

8

Get Value of URL Parameters using JavaScript

Posted by 4 Comments

If you are looking for a quick and easy way to grab the value of a query string parameter from a URL, you only need a few lines of JavaScript. The below script will return the value of the matching parameter or return false if no match was found.

Continue Reading

Mar

8

Create a Multiple Column List with CSS

Posted by 1 Comment

If you want to create a multiple column list you don’t need tables or javascript to manipulate the list items, you can do it with a few lines of CSS. First you will want to set the width of list container:

ul {
    width: 400px;
}

Continue Reading

Feb

28

Create Your Own Twitter WordPress Widget

Posted by Leave a Comment

You don’t need a bulky third party plugin in order to create an interactive Twitter widget for your WordPress site. Twitter’s 1.1 API offers Embedded Timelines which allow your visitors to reply and Retweet directly from your website.

First go to the Widgets page in your Twitter settings. Click Create new to setup the new widget.
twitter settings

Continue Reading

Feb

18

Disable WordPress Admin Bar for non-Admins

Posted by 1 Comment

If you want to disable the WordPress Admin Bar for regular users, all you need to do is add a couple of lines to your functions.php file.

1
2
3
if (!current_user_can('manage_options')) {
  add_filter('show_admin_bar','__return_false');
}

Continue Reading

Feb

12

Scrolling Floating Sidebar in jQuery

Posted by 11 Comments

Making a sidebar that floats while scrolling for your website is quite simple using jQuery. A very basic markup of HTML, CSS, and Javascript are below. Click on the JS Fiddle link at the bottom to view a demo.

HTML: Two divs, a longer ‘divA’ on the left, and the floating ‘divB’ on the right, both wrapped in a container div.

1
2
3
4
<div id="container">
    <div id="divA"></div>
    <div id="divB"></div>
</div>

Continue Reading