Web Design Blog

This is where we store some of our Web Development thoughts, tips and tricks, just because we like to share.

MySQL & PHP- Show Tables In Database

Someone asked me the other day how to display the existing tables in their database with a PHP script. The query itself is pretty simple, but people seem to get confused about the PHP side of it. Then again, once you look at the code, you might be surprised how easy it really is… Printing [...]

14 Nov 2008 / 5 Comments / MySQL & PHP / by Maruf

PHP- List All Files In A Directory

I’m working on a website for a client at the moment, and one of the features I need to do is display a bunch of images in a particular directory. It’s actually a very simple process in PHP and only requires a small amount of code. I’ve seen a lot of examples on other forums/websites [...]

02 Nov 2008 / 29 Comments / PHP Scripts, Tips & Tricks / by Maruf

WordPress- Only Display Element On Homepage

A lot of the files in WordPress are used as includes e.g Sidebar, header and footer. What if you want certain elements in those includes to appear just on the Homepage? I find myself needing that feature all the time. Example All you really need is one simple function. So for example, in your header [...]

20 Oct 2008 / 7 Comments / Wordpress / by Maruf

Rounded Corners With CSS

This is a pretty simple but useful tutorial. A lot of people physically create round-edged backgrounds with applications like Photoshop. While this is time-consuming and a complete nightmare for updating purposes, there is a much more efficient way of doing this with the use of CSS. Only problem is that it doesn’t work in all [...]

15 Oct 2008 / 2 Comments / CSS Tips & Tricks / by Maruf

2-Dimensional Arrays In PHP

I LOVE arrays. They make life so much easier and efficient. At first they can be quite difficult to get the hang of, but once you capture the basics, everything really does start to make sense. Each time I play with arrays I seem to learn something new. Here’s just a quick reminder to myself [...]

07 Oct 2008 / 0 Comments / PHP Scripts, Tips & Tricks / by Maruf

Pure CSS Image Gallery

It’s a simple CSS image gallery- no Javascript or any other scripting language is required for the feature to work. I had someone ask me how I did it, so I thought I would share the code. Demo of the CSS gallery It’s simple, clean and affective. CSS Image Gallery Code Download Any probs? Let [...]

30 Sep 2008 / 3 Comments / CSS Tips & Tricks / by Maruf

Anyone Got Any Technical Questions About WordPress?

We use WordPress a lot over here- not only for our own blog, but also our clients. Consequently, a lot of our developers, including myself, are becoming more and more familiar with the WordPress environment. In my opinion, WordPress is by far the best blogging platform available because it’s easy to use, works great, and [...]

29 Sep 2008 / 8 Comments / Wordpress / by Maruf

WordPress- Get Image Path Relevant To Theme

I’ve had a few people ask me how they can link an image into a theme. Apparently they’re having problems finding the relevant path, no matter how many directories they go in and out of E.g “../../../images/mainimage.jpg” The Problem As a result, you’re left with something like this: It sounds like an unbelievably simple problem, [...]

19 Sep 2008 / 53 Comments / Wordpress / by Maruf

Centering Text Vertically With CSS

CSS can be extremely odd some times, and vertically centralizing text in CSS is one of those occasions which makes me think that… Centering text horizontally within a div is extremely straight forward. All you need to to do is use the text-align:center property. But for some reason, there isn’t an easy remedy to centralize [...]

15 Sep 2008 / 0 Comments / CSS Tips & Tricks / by Maruf

PHP- Count Files In A Directory

I’ve just added a new feature to the Team page, where i’ve added a small CSS image gallery. So now you can see multiple images of the awesome BrightCherryteam! I like everything to be automated so there is very little input from a human to make things work. To help make the thumbnail image gallery [...]

06 Sep 2008 / 22 Comments / PHP Scripts, Tips & Tricks / by Maruf

Free WordPress Theme- Fresh Editorial

I feel kind of guilty; I’ve created a WordPress theme that steps out of the BrightCherry norm. It’s a theme that doesn’t have a single piece of fruit in the lime light, whereas all our previous themes have been based on a fruity treat. Since we are BrightCherry, we planned on focusing all our themes [...]

03 Sep 2008 / 116 Comments / Free Wordpress Themes / by Maruf

Using Different CSS Stylesheets For Different Browsers

I’ve been crunching through a lot of CSS this week, and on occasion I’ve had to overcome the classic CSS battle between Firefox and I.E. It’s no secret that Internet Explorer and Firefox tend to disagree on certain elements in which they render CSS properties. So while everything may line up perfectly using one browser, [...]

01 Sep 2008 / 5 Comments / CSS Tips & Tricks / by Maruf

Free WordPress Theme- Orange Squash

Yup, I’ve released another fruity WordPress theme. The fruit of the moment is the Orange, so naturally I decided to call it “Orange Squash” As usual, it’s available to preview and download over at WordPress. Requests I’ve had a few people throw in some theme requests over the past few weeks. Apparently our fruit basket [...]

26 Aug 2008 / 37 Comments / Free Wordpress Themes / by Maruf

5 Cool CSS Tricks That Are Often Neglected

In this post I’ll quickly go over 5 CSS tricks that I think are pretty cool, but often neglected. Controlling case sensitivity Transparency Using multiple classes together Changing Cursor CSS font shorthand 1: Controlling case sensitivity I’ve already mentioned this in a previous post, but it’s a nice little trick, so it belongs in this [...]

22 Aug 2008 / 0 Comments / CSS Tips & Tricks / by Maruf

How To Remove Dotted Border From Links In Firefox

I’ve noticed that a lot of websites have an unexpected dotted border around links in Firefox. A lot of the times you can get away with it because it doesn’t look too odd (depending on your CSS). However, I’ve seen cases when it looks pretty odd. Here’s an example: I’ve actually taken that screenshot from [...]

14 Aug 2008 / 1 Comment / CSS Tips & Tricks / by Maruf
Page 4 of 512345
© 2012 BrightCherry :)