|
just another regularban.info web blog |
| MEMBERS: | Your CSS Code is Slowing Down Your Website - How To Optimize for Speed
Did you know that your css code could be slowing down your website? Did you also know that there is a free solution out there that can help you optimize or reformat your css code for speed and readability? This article is going to explain the benefits of optimizing your css code and the reasons why all web designers should be doing it. First we need to take into account the 2 reasons why you would want to reformat your css: readability and optimization. Readability Having nicely formatted css that easily readable is very helpful when you are developing a site. Most of us (me included) can get pretty sloppy when in a hurry to develop code, and a formatter can really help out to make it more readable. On development teams where both Macs and PCs are used, sometimes line breaks are not read correctly across platforms and your css can end up all on one line. A formatter can help get your code looking pretty again. Optimization The opposite of readability is optimization. One problem with CSS is that it can get pretty file-size heavy when designing with it - especially on complex layouts. Optimizing your CSS will strip out all unnecessary characters and leave your CSS lean and mean. Optimizing css is great to do once you've finished your site and don't plan to work on the design very much anymore. The css formatter is a great tool because it can do both! You can format for readability while you are designing, optimize when you go live, and reformat it for readability if you ever need to work on it again. It's really a 'win win' thing to do.
Overcoming Those Annoying CSS Bugs
There are a number of different browsers that you must compensate for when designing your webpage's in any format (CSS, tables etc.), some of the most common browsers are : Internet Explorer 6/ 7, Firefox and Safari. The main issues that arise with CSS design is that all browsers interpret CSS differently, for example Firefox does not understand some of the CSS commands that Internet Explorer does and vice a versa. One of the main issues I have found when designing with CSS is a problem with margins in Internet Explorer 6. I found that when using a float on a div tag that also had a margin set, the margin would actually double and then knock the whole pages layout out. After numerous late nights and an insane amount of coffee I finally found a solution to this double margin bug. By inserting a simple line of code the double margin no longer double ! That solution is as follows, by adding this line of code to your CSS div tag 'display: inline'. Another problem I have found with CSS in Internet Explorer 6 is a problem when trying to define a div tag that has a smaller size than the base font size. This problem again can be fixed with a simple line of code this time all we need to add is the following line of code to the div tag: 'font-size:0px'. There is also another solution to this problem that should have the same effect, because the div tag auto stretches to compensate for content overflow adding 'overflow: hidden' should also resolve the problem. Unfortunately I have been unable to cover all of the cross browser issues that you may experience when designing with CSS, but most of the problems that you may encounter can be resolved pretty easily with simple trial and error. Happy designing!
Is Your Website a Grave Site?
Let's say you have a website. You probably feel pretty good about it. You have a presence. People can find you. You're out there. Sure, these are all good things; the only problem is everyone has a website. A website is the bare minimum. A website is only just enough. As a small business owner, as an entrepreneur as an upstart you must standout. You are the underdog. Underdogs don't out hustle the more established folks by doing just enough. And if you only have a website, you are only doing just enough. Want to build your business and exceed your goals? Do more than just enough. Hold on, let's get down to it. If you consider how advanced the internet has become in just the last 5 years, if you only have a company website you aren't doing just enough. You're doing less than enough. You're doing enough to exist, but not enough to excel. You're doing enough to be counted, but not enough to go over the top. I'm sorry. I really like you. I wish you the best, but the truth is you're behind the curve. You can change it, but to do that, first you need to change how you see the web and the possibilities. You've got to decide if you're serious about your business? Is your business concept a winner or a loser? Can it work? Is it working? What to do about it? More of the same isn't the answer. Making your website more pretty isn't going to cut it. You need to diversify. I may be blunt, but I'm not exaggerating. Like John McCain says, "Time for some straight talk". A business website should be only one piece of your web presence. You should also have a presence on every social networking website out there. You should have articles related to your business all across the information superhighway. You should belong to all the major (and some not so major) business networking sites. You should have a video on YouTube, a Face book, a MySpace and a Squidoo page. You should be everywhere other business owners congregate, share ideas, exchange referrals and talk shop. You must be there. No excuses. No exceptions. Sure, it takes time to set up marketing mechanisms across the many websites that are available, but it's time well invested because your company website isn't the end all to be all of generating buzz and finding leads on the internet, your website is just the beginning. Make a commitment to your business and cease and desist looking at those social networking sites as options. They aren't options, they are necessities. If you need more reasons to justify putting your resources into more than a company website, just take a look at Barack Obama's surge. Obama-mania owes much of its energy and support to the social networking sites that it uses. Get involved and secure some of that same viral power for your business. 99% of it is free and 100% of it is good business. Welcome to the first day of your new way of looking at promoting your business on the net. Go get started yesterday.
|
* About Archives
Categories:
Last Updated: |
| regularban.info
is proudly powered by WordPress MU running
on regularban.info.
Create a new blog and join in the fun! Entries (RSS) and Comments (RSS). |