![]() |
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. |
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. :)
|
All times are GMT -7. The time now is 08:14 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc