![]() |
Awesome thread, Stu, bookmarked! You know how much I LOOOOVE Css... grrr
|
one problem i have with my 3 column wordpress css layouts is how to make the 2 colored sidebar columns go all the way to the bottom - as it stands they only go down as far as there is content in them.
any tips css gurus ? |
CSS is the suck and not necessary.
|
Quote:
|
I must say, to me 'pure css' designs, still seem in the realm of 'hacky' at best, but I love making hybrids : let tables make the main structure, throw in divs and css for the rest, match made in heaven.
|
Quote:
|
Ths is a really great thread. I hate CSS with a passion but as a full time blogger I am always dealing with it in my WP themes. I find that even the simplest adjustment takes forever to figure out in CSS.... but maybe this thread will help me.
|
|
Quote:
|
Quote:
Sorry for the double post. |
I'm sorry, but your number one tip??? What does css designing have to do with doctype? If you design a website, in tables or css the doctype has nothing to do with how it's displayed in a browser. I've been doing pure css design for a long time now, and can write my code in either doctype properly with no errors or warnings off hand. However, even if you say wrote xhtml strict code, with a html 4.0 doctype. It would still end up rendering the same in a browser.
|
Quote:
The official differences are found here: http://www.w3schools.com/tags/tag_doctype.asp You can read more about how they function differently here: http://www.oreillynet.com/pub/a/java...8/doctype.html Personally, I have found that I can really struggle getting my CSS layouts to look exactly the same in all browsers until I make the doctype strict. Certain things like top 0 and left 0 can be very different in FF and in IE... until you set things to strict. |
K.I.S.S. is my only rule.
|
Quote:
But then, CSS isn't meant to be used entirely by itself. It's meant to be used in conjunction with javascript, so it's not all bad :) |
Quote:
|
Quote:
Now we've got W3C (whom MS has never been on great terms with) and Firefox demanding things be done a certain way. Fact is, they have no room to talk. As long as MS controls 90-95% of the market, they don't need to listen to the little guys creating their "official" standards. In reality, whatever MS does is THE standard that designers will live by. Yeah, it really sucks that MSIE and Firefox don't work exactly the same. But my point is, MS needs to have most of the influence at W3C given their market position. |
bookmarking
|
Quote:
The original CSS construction is more time consuming than an HTML design. So if we are talking about one off "build it and forget it" pages then I stick with HTML. But if this is for a major site that may require a little tweak that is on every page, then CSS is the way to go. |
awesome thread :thumbsup
great tips, StuartD :thumbsup bookmarked |
Quote:
An all HTML design is actually quite not possible, especially in today's world of tours and layouts. I say that because tables were never meant for designs, they were meant for data organization... such as spreadsheets. The only way to do many designs strictly in HTML is to have nested tables and that's very bad form. Especially in IE which requires the entire contents of the table to be downloaded before rendering any single part of it to the screen. HTML is a markup language which is little more than a way to present information to the browser in lists, forms, tables and so on. CSS is the styling tool that is used to make that information look good. And if you begin creating your pages with CSS, it will take WAY less time than to do it strictly with HTML alone.... as you will require 1/3 or less HTML to accomplish your goals. |
Quote:
Check out what I went thru over here http://www.gofuckyourself.com/showthread.php?t=756104 |
Quote:
|
Quote:
Seriously, I could go through my portfolio and make a copy of every single design and change the doctype on the copies. They'll all look exactly the same. Example; Code:
<table> Code:
<div style="position: relative; top: 0px; left: 0px; height: 100px; width: 100px;"></div> |
Quote:
|
Quote:
|
Let's see either of you make a quick design, copy it, and use a different doctype on each one. I'd love to see what you're talking about.
|
Here's one of my older designs, 100% pure css of course.
http://pulsedesign.biz/printer/css.html 100% pure CSS using xhtml strict code. CSS has positive and relative positions, also has some floats. Should be a more "advanced example" for you. w3c valid code; http://validator.w3.org/check?uri=ht...r%2 Fcss.html w3c valid (no warnings) css; http://jigsaw.w3.org/css-validator/v...er/printer.css Now we'll take the same page, and change nothing but the doc type. Changing it from xhtml 1.0 strict, to html 4.01 strict. - http://pulsedesign.biz/printer/css-doctype.html Page is displayed EXACTLY the same. I tested in FF 2.0x and Safari on OSX, and IE 6.0x on Windows XP. I could pull out hundreds more designs and show you the same thing over and over. Instead, I showed an example on my end. Let's see one on your end. |
Quote:
Secondly, your html 4 infact does not validate as you have left in the close tags ( /> ) items from your xhtml document. Those aren't required nor valid in html. |
Quote:
http://pulsedesign.biz/printer/css-transitional.html & http://pulsedesign.biz/printer/css-frameset.html & the original (strict) http://pulsedesign.biz/printer/css.html Again, only changing the doctype. This time as per "what you were talking about", keeping it the same xhtml but changing the strict/transitional. Tested in FF 2.0x and Safari on OSX, and IE 6.0x on Windows XP. All still render EXACTLY the same. :thumbsup Quote:
.........So would you please just post up an example of two designs. Code on both exactly the same, with just the doctype changed. Where the end result is the design being rendered differently? |
Also, if you're against using xhtml as an example. I'll even do the same with a design coded in html 4.01. 100% css, w3c valid page, w3c valid css (no warnings). I'll keep the code exactly the same but just change the doctypes from html 4.01 strict, to html 4.01 loose - html 4.01 frameset - and even xhtml strict - xhtml frameset - xhtml transitional. Six pages, all the same code, each with different doctypes. All will render the same in all browsers.
|
hey good thread - somebody posted a link to this website the other day in a thread http://www.soulacreative.com/about_us.html
so i clicked it cuz i was bored - on the right there's a menu with a Flash animation background. I like it. So I looked at the source and the style sheet to see how they put a Flash animation in the background underneath a menu and I couldn't find out how they got it there. i'd appreciate an explanation - it's mostly a CSS layout. thanks |
excellent thread. bump.
|
Question... when using on page javascript and styles, you'd comment it out so that it wouldn't fuck up on some browsers.... eg:
Code:
<style type="text/css"><!-- Like this??? Code:
<style type="text/css"><![CDATA[ |
Yes, <![CDATA[ tells the browser to NOT parse anything within those tags as XML... so it will try to ignore &'s and %'s and everything else that would otherwise break XML.
I hate the <![CDATA[ But what can ya do... it's a necessary UGLY evil that seems to be coming on strong, especially with RSS as popular as it is now. |
Quote:
However, suffice to say... there are differences. Otherwise they wouldn't have bothered making the doctypes in the first place. Right? There's plenty of examples, tutorials, descriptions and so on with a few quick searches in Google... for example: http://htmlfixit.com/tutes/tutorial_...ferences.shtml You can continue to make pages designed with tables if that's what works for you, but CSS is still a better method. Or you can use CSS and not bother with DOCTYPES if that's what works for you, but using proper DOCTYPES is still a better method. |
Quote:
Read more: http://www.google.ca/search?q=wmode%3Dtransparent |
Quote:
It's sad you can't admit you're wrong. You were all about me being the stupid one at first, but as soon as I go a bit more in depth and provide some examples you back off. Quote:
|
Quote:
|
Quote:
Changing a doctype has no effect on a layout, or design. Creating a layout that works in say strict xhtml, will also work in transitional xhtml and/or html strict/transitional. Both layouts will look exactly the same. Doctypes will not change positioning, margins, or 0px as you say they will. The differences in code, in say strict xhtml compared to html 4.01 are nothing to do with layout discrepancies. Such as, In xhtml an image tag must have a closing bar. Valid image tag for xhtml strict doctype. Code:
<img src="image.jpg" alt="thisimage" /> So I'll quote you again; Quote:
|
Quote:
Me thinks you can't make this mysterious layout that will magically look different with different doctypes. |
I'm bored right now by the way, waiting for my gf to finish her nap. So one more post before I wake her up to head out.
Quote:
If you're having discrepancies in cross browser compatibility. Even with anything, but in this case specifically with pixel dimensions. Then you're most likely getting in over your head with advanced css design and using more complex margin or padding rules. Which is what most beginners have trouble with. They'll get good at css and try to expand into more complex designs but just run into more problems with how bad code can be rendered. I'm willing to bet the problem you had in your example had to do with improperly using either margin or padding styling. |
Quote:
Of course not. From the surfer experience standpoint, there is no compelling reason to take an HTML plus graphics site and convert it to CSS plus graphics. The end result to the surfer will be exactly the same. Don't think I am slamming CSS though. It's a great tool for a site with hundreds of pages. If you want to change the appearance of one thing on each page, you just update one file. But if we were to talk about gallery builders switching to CSS, what would be the point in that? |
this is the first time i've seen a legitimately helpful thread such as this.
|
Something I came across last night which is kinda cool
text-transform:lowercase; text-transform:uppercase; |
Quote:
Code:
#right_menu #menu {margin: 30px 30px 30px 17px; width: 180px; position: absolute; z-index: 9;} |
Bump for a great thread!
|
Fourth time in history I'm bookmarking a GFY thread. Amazing.
Good thread Stu. Would have been better if I checked the date first too. LOL |
Quote:
|
Quote:
|
one of my favorite CSS tricks is when using it in conjunction with ASP.NET to show/hide controls.
those of you who work with .NET know that if you set the visible property of a server control to false, it won't render to the browser at all, so you can't make it visible without using a postback. so what i like to do is leave the visible property as true, but during the page load add a "display: none" CSS attribute to the control, then use a javascript to change that to "display: inline" on the client side so i can avoid at least one more trip back to the server. makes the page much smoother since the show/hide is all done client side. |
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