![]() |
Quote:
Great tip :thumbsup |
i've just started messing around with AJAX not too long ago. at the moment it is more of a curiosity to me than anything, but i think i am going to incorporate some of it's functionality in to one of the current projects i am working on.
it makes life a hell of alot easier than writing all kinds of wacky java functions myself, and while it seems i will still need to augment it with custom java work, i don't think it will be nearly as much as before. (i hate java. i have never had any patience for any language that is case sensitive of requires ; to terminate lines, but for client side functionality, you can't beat it). other than that though i don't really utilize all that much CSS. i am slowly starting to incorporate it more and more as needed, but i still do things relatively old school. old habits die hard. ;) |
I cannot lie I have not built a site from scratch in a while and #1 saved me $30. I was about to pay a guy to remind me how to get the cross browser compatibility. Maybe I just smoke to much, Ya never can tell. Thanks alot for the free tip, the rest I had fresh in my memory so it wasn't helpful to me but Im sure someone else will find something useful.
|
Awesome thread :) I bookmarked it yesterday.
About doctype issue, from my own experience, yes, it affects layout in some cases. I can't give an example at the moment (you can call me lazy if you want), but I have to mention that StuartD is right when it comes to doctypes. |
I just want to learn how to make a simple text box on a layout :(
|
Floats are fragile and I hate to rely on it for my positioning.... good thing they have position: I use position 90% of the time to build sites.
A lot of the CSS that I see out there is so div heavy, it's the same as using tables. Try to use the least amount of divs. Don't forget that every standard tag can have css applied to it... I didn't see this tip out here so here's my 1 cent Code:
h1#branding { |
bookmarked.
|
Quote:
Quote:
|
potter, stop shitting on a good thread.
Quote:
So don't forget to add a DOCTYPE :winkwink: Quote:
Quote:
I suggest you read the following article as well: Fix Your Site With the Right DOCTYPE! Written by Jeffery Zeldman who is a huge advocate of web standards. Quote:
Quote:
Quote:
Quote:
|
Stuart great thread/ Ive been looking for this type of info, as I'd like to do my galleries using CSS.
I have a question. How can I create a a 15 pic gallery say thumbs 135 x 180 - using background images sliced for faster loading. Would that be a mix of css and tables? Would I create <div> for each area Id like to lay out a number of thumbs? I hope that made sense. |
what this thread boils down to is most people are idiots. most of you wannabe designers cannot even hack out a half decent CSS page if you were payed for it.
you claim proper code but you suck, i dont need to name names because i wish you the best of luck anyway, stuart you are a fucking programmer stick to it. its called fucking style sheets for a reason programmers have 0 style. :2 cents: |
Great thread...
|
Awesome thread and I thought I'd share one tip that's helped get my layouts look the same with IE and Firefox. When creating a stylesheet I type it out adhering to CSS2 standards and it always works out fine with Firefox but when viewing it in IE sometimes there is the odd div that isn't positioned exactly the same so I create an extra rule for IE only by adding !ie:
#wrapper { top: 0px; top: 5px !ie; } In this example the div snuggles up to the top nicely with Firefox but with IE it was nudged up slightly higher so I added a little padding that Firefox ignores but IE reads. :) |
Seems CSS is ALL FUCKED UP and you have to do umpteenth work arounds to get anything to look right.
HTML had shit just about perfect. |
Quote:
If you view the source in this page, you'll see that the images go side by side quite neatly, and wrap to the edge of the browser window. There's nothing stopping you from creating a div that's say... 180px wide (135 x 2 + padding) and putting the images inside that. Then the images would wrap 2 by 2 within that div, rather than the entire browser window. It means having to do a little math on your part to get the divs the right size to make everything fit snug, but you make your divs, put your thumbs in and the galleries will just work. |
Quote:
|
Udamang..
|
This could be: CSS for dummies, you should sell it to them, very good thread
|
excellent thread StuarD and thanks 4 taking the time to share it with us! :thumbsup:
|
Thank you everyone. I'm glad that it has been of some use to some of you. :)
|
Quote:
This is not true, and any decent web tech should know that. Nothing you provided proved that one doc type would display margin, padding, or 0px differently. Go ahead and email Jeff and ask him. :2 cents: |
Quote:
Or to put it another way, if the W3C built motorways, the number of lanes it had, speed you could go and distance to be kept between cars would vary depending on the car you were in, colour of eyes you saw the road through and whether or not your car manufacturer had the greatest market dominance, and so just did everything differently, just for the shit of it. |
Quote:
Which is true. 0px means the top left corner of the browser, but the different browsers interpret the "top left corner" differently. |
Quote:
For starters 0px means zero pixels. 0px has nothing to do with corners, it's a definition of measurement. Secondly, if different browsers render 0px differently. And if "top left" is different in different browsers. I'd love to see some information on it. I guarantee you can't find me one shred of information stating how 0px will be rendered as say 0px in firefox but .5 pixels in internet explorer, or 1.3456 pixels in opera. I'd also love to see some information that states "top left", is not defined as the top left corner of an element in some browser. Like whoa, what you're saying is happening goes against every thing that is known about the browser rendering and css. |
Quote:
true, a pixel itself isnt changed or 'measured' differently - but - browers will use them differently or see the formulas and output them differently... |
Quote:
There's obviously no point in it since you are nitpicking this crap just for the sake of arguing at this point. You go about doing things your way, you're the best. All hail you, king of css. |
Quote:
|
Strict is not strict. Why can't I do <iframe/> or <script src="..."/> without the browser crapping out on me?
Another good one. Don't do display: none in the css if you want to change it with JS later on. Do it inline on the actual element. You can't change it since it's not on the DOM if you declare it none in the CSS. |
Another tip to keep the thread rolling
display property... Quote:
|
Quote:
And your point about using display: none; inline is a good tip. And display: none; is better than visibility: hidden; hidden seemed to leave the space that the hidden element took up on the page, but display none, removes that space and continues the normal flow of the document. |
Quote:
|
Quote:
|
Quote:
|
Quote:
You had the right idea starting this thread. It had good intent. However you're providing misleading and wrong information. It's counter productive to what you tried to accomplish. |
Amazing thread stuart. I'm going to bookmark it.
|
bumpity for these great tread on css thanks stuartd for starting it and Merry Christmas
|
Man, this is very usefull, thanks for this!
Bump! |
Good post Stuart! :thumbsup
|
All times are GMT -7. The time now is 11:55 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc