HTML & CSS
I just wanted to talk about how I am setting up my new website. Usually my websites consist of setting up my html first with giving all of my divs creative and unique ids. This has worked for me very well, and my naming conventions are always getting better. But I decided to try something different this time with my site.
I am giving each div general id names such as, top, mid, bottom for my main sections. So my top section for my links would be labeled <div id=”top_left”></div> and my Middle Right would be <div id=”mid_right”> This way I know where my divs are and how my css is layed out.
This is helping me because if I have to go back and change anything, I can select what I want from that part of the page without knowing any unique names.
PHP Includes
This is something I have been doing for a while now and just thought I would like to talk about it again, and that is creating php includes for multiple static parts of your pages. So for instance, I currently have 3 PHP includes on each page that stay the exact same. I have my navigation in a php page, and also my footer. I also include my database configuration at the top of each page. Doing simple things like this can streamline your pages and editing pages easier and faster.
If anyone else has any other ideas on how to make web pages more flexible, please give any suggestions.
Also Flex Style Explorer 3 came out and is a tremendous tool for experimenting with Flex components and CSS. So check it out.
Filed under: Uncategorized