Hello, all.
Recently I've decided to brush up on my CSS skills, seeing as over the past year or so all I've been asked to make were flash sites(which were quite annoying to say the least).
I used to be able to code fairly decently in notepad, but since it's been a while and i've been lax on keeping up with my skillset, I figured jumping in DW and doing my handcoding in there would be a better way to actively see what the heck I was doing right and wrong.
I had a bunch of imaged cut up from photoshop and I was having initial difficulty keeping the div tags(with the images in them) placed correctly in Firefox. It really really didn't like them. So I jumped in PS and assembled a bunch of those images into one larger one(10k which is still quite small in size, but I'm not worrying about that much at the moment). Anyways, I try moving it around in Firefox, and it's still extra wonky.
It works in IE, though, and it's passed all validation from W3, which was pointed out in that "Read me First" thread in here(Thanks for the useful links, I had no idea validation tools were online at all!).
It's strange. Whenever I used to type up sites, IE would be the first to buckle, but I'm pretty rusty and I'm probably messing up my CSS properties.
In the end, I even tried tossing the troublesome div into an AP Div in DW(which looks a lot like a forsaken Layer from the older dreamweavers) to see if I could do something about it. Still no luck.
Can anyone give me some clues? I'm all out of ideas.
You've got valid code but I don't know what it's supposed to look like. What it DOES look like is strange.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Problems here involve unnecessary absolute positioning and illogical nesting - let things flow and stack naturally. I had a play around with this, and came up with this html (even put a few links in boxes - bored) :
Basically, a wrapper contains every thing and centres the site. The main site background image is applied to the wrapper and positioned down from the top to clear the header. The header, navbar, and content area just stack one under the other, the positions being determined by set sizes and paddings.
Wow, that makes perfect sense. Works perfectly!
That's just some awesome structure. I guess I still have a ways to go before I'm proficient again, but you just clicked a few light bulbs on in my head with this.
Thanks for everything, I was really starting to go loopy! XD
Also, I realized this was my first post I made about this. I was wondering if my initial post got lost in translation before, and re-posted it in here again and that one hasn't shown up yet, but this one did. I guess this board works differently than others I've been on (checking each post maybe?). Anyways, sorry in advance if there's another post about this. I'll try to catch it if/when it hits.
Bookmarks