|
|
#1 |
![]() Join Date: Apr 2004
Location: Belfast, UK
Posts: 63
![]() |
http://www.dreamstoreactive.org/
This website needs to be accessible for disabled users, and I thought it would be a nice idea to remove ALL tables from Mambo. I like Mambo a lot, but the whole 'tables' thing annoys me as an XHTML/CSS kinda guy :-) I'm very excited about Mambo 5.0 & it's PatTemplate integration, but I'll just have to hack in the meantime. Let me know what you guys think of the site. I would appreciate feedback, either positive or negative. Thanks, Poncho BTW, this is still work in progress. |
|
|
|
|
|
#2 |
![]() Join Date: Aug 2004
Posts: 29
![]() |
Hi,
I like it very much and even more I like the idea of getting rid of the tables in mambo. Can you exlain a little what you did? Thx, Southy |
|
|
|
|
|
#3 |
![]() Join Date: Apr 2004
Location: Belfast, UK
Posts: 63
![]() |
The first thing I did was find out where all the tables were coming from, mostly in "/components/com_content/content.html.php".
All, or most of the modules in Mambo allow for the xMambo style of using <div>s to use as output, (by calling "<?php mosLoadModules ( 'top', -2 ); ?>" in your template), but the core of mambo does not have the same flexability. For the menus, from the administrator interface, go to the modules page, and select your menu. In the parameters tab, select menu style as "Flat list", this will output your menu in the following format: <ul> <li>item1</li> <li>item2</li> <li>item3</li> <li>item4</li> <li>item5</li> </ul> Really from then on in, I went through the content.html.php file, took out the tables and replaced with <div>s, eiher with unique IDs or gave them a class to create style rules for. I think I'm about 80% done on the site. I've picked up a lot of XHTML/CSS tips from such websites as: http://www.alistapart.com/ http://css.maxdesign.com.au/ http://www.aplus.co.yu/ Some really helpful stuff! Hope that explains things a bit! |
|
|
|
|
|
#4 |
![]() Join Date: Dec 2004
Location: kUaLa LumpuR, mALaysia
Posts: 9
![]() |
nice web design!
|
|
|
|
|
|
#5 |
![]() Join Date: Dec 2004
Posts: 15
![]() |
the design look really great!!! the color combination are cool...
![]() |
|
|
|
|
|
#6 | |
![]() Join Date: Jul 2004
Location: Brisbane, Australia
Posts: 68
![]() |
Quote:
Can someone tell me why tables are so bad??? :-(
__________________
Please visit Web design brisbane "You never get a second chance to make a first impression" |
|
|
|
|
|
|
#7 |
![]() Join Date: Apr 2004
Location: Belfast, UK
Posts: 63
![]() |
As you can see from the dreamstore website, the layout can be achieved without the use of tables, and it is more bandwidth friendly.
See: http://www.htmlite.com/SD008.php http://www.sitepoint.com/forums/showthread.php?t=133933 For me, the main benefits in css layout are, in page size being drastically reduced, all of the styles can be stored in one site-wide css document, (meaning; change one style rule, and it is repeated site-wide.) and finally, it is easier to implement accessiblity options in a css site. This is the first website I have built using Mambo and I have re-coded a lot of the core, and 3rd party components and modules to make room for accessible features. It may take longer to create a css based website, but the pros definately out-weigh the cons. Edit: This website should hold all of the answers. http://healyourchurchwebsite.com/archives/000791.shtml |
|
|
|
|
|
#8 | |
![]() Join Date: Dec 2004
Posts: 1
![]() |
Quote:
|
|
|
|
|
|
|
#9 |
![]() Join Date: Jul 2004
Posts: 152
![]() |
I thought there were still a lot of browser incompatibilities regarding CSS?
Are you sure the world is ready to view 100% CSS websites? Have you tested this in older browsers and Netscape? Last time I picked up a web design book (quite a while ago to be sure), the tone was that CSS was still very much an 'emerging technology'. Has there been a fundemental shift in the last year? |
|
|
|
|
|
#10 |
![]() Join Date: Aug 2004
Location: Espoo, Finland
Posts: 388
![]() |
I think the world is very much ready for css by now
![]() |
|
|
|
|
|
#11 |
![]() Join Date: Oct 2004
Posts: 142
![]() |
I wouldn't be 100% sure of that. I've been playing around with opera, ff, netscape and ie at the same time, and still get some really bad nerves sometimes. Probably I'm just a pixel guy who loves to see a 1px padding instead of two on some browsers, otherwise what's the point in wasting time writing padding-top:1px and see two instead. CSS can be a nightmare for fine works.
Just a point.
__________________
<!-- --> |
|
|
|
|
|
#12 |
![]() Join Date: Nov 2003
Location: Denmark
Posts: 309
![]() |
Yup nice site and it validates aslong as u dont click on the component bits....then validating times r over :O(
__________________
Webdesign / templater / pixelpusher |
|
|
|
|
|
#13 |
![]() Join Date: Jan 2004
Location: Diest, Belgium
Posts: 387
![]() |
Ah well validation ins't everything
![]() |
|
|
|
|
|
#14 | |||||
![]() Join Date: Dec 2004
Posts: 9
![]() |
Quote:
Quote:
Anyway.... Quote:
Quote:
The stupid thing about this is that this isn't something that the admin should be configuring in the UI; it's something like the -2 argument above that the template designer should be setting in the template. After all, messing with this is only going to break a template that isn't prepared for it, and who else knows better what it should be set to than the template designer? Quote:
![]() |
|||||
|
|
|
|
|
#15 | |
![]() Join Date: Sep 2004
Posts: 67
![]() |
Quote:
You can use filters and hacks though (like html>body) to work around the various browser inconsistencies. I reckon 100% CSS layouts are good to go... there's such a small percentage that don't use either IE 5+, FF, or NS 6+. You can still make really nice designs just by sticking to CSS 1 as well.. ![]() |
|
|
|
|
|
|
#16 | |
![]() Join Date: Jul 2004
Location: Brisbane, Australia
Posts: 68
![]() |
Quote:
can some tell me why tables are so bad?????
__________________
Please visit Web design brisbane "You never get a second chance to make a first impression" |
|
|
|
|
|
|
#17 | |
![]() Join Date: Oct 2004
Posts: 188
![]() |
Quote:
http://www.w3.org/Style/CSS/current-work.html#table You'll still get, even today, the odd person who believes that CSS is an 'emerging technology' as you put it. Truth is that they can't handle the truth. To deny CSS is to deny the earth is round. So Anti, thanks for asking. Have no fear of a browser that can't render a CSS enabled page. |
|
|
|
|
|
|
#18 | |
![]() Join Date: Oct 2004
Posts: 188
![]() |
Quote:
Some people code sites with total disregard for Firefox and other browsers. Some pages don't even show anything in Firefox. You can have a page look the same in both IE and FF aslong as you do it correctly and thoughtfully. |
|
|
|
|
|
|
#19 |
![]() Join Date: Jul 2004
Posts: 152
![]() |
OK, so why in Opera 7.23 (not the newest, but not old by a long shot) is the log-in module/column on 'Dreamstore' placed over the search-box and header graphic. The column is supposed to start about 50 pixels below, no?
http://www.dreamstoreactive.org So is that the fault of 'carefully crafted' CSS, or Opera? Every CSS tutorial I have just looked at seems to be page after page of 'workarounds and tricks' and designers arguing for one method over another. There doesn't even appear to be a clear, definitive way of making a three-column, fluid layout that stretches columns to the width of the page/screen? Is that why so many sites are fixed-width now? The other thing that puts me off learning/using CSS is that when you see a nice layout feature and view the source to see how they did it, you can't see the CSS file, so you can't learn from the source. That negates the fastest way to learn in my opinion. Trying to find a tutorial for something that you have only seen as an end-user is impossible, because you don't know exactly what script snippet you're looking for. I think at this point, personally I will continue to only use simple CSS for non-critical embelishments, because there are still apparently so many considerations that you have to take into account if you want to do a 100% CSS site, and it seems to get real complicated, real quick. As someone working on a small personal website, I don't have time to wade through all that information and mis-information when I can simply layout the site very predictably using tables. Maybe it's different for someone who does web design all day every day. Don't flame me. It's just an opinion of a noob who learnt a little bit of html, javascript and PHP very easily, but cannot get a grip on CSS because of all the conflicting information and things that still don't work as they are supposed to. Case in point; the 3rd column on DreamStore. ![]() |
|
|
|
|
|
#20 | |
![]() Join Date: Dec 2004
Posts: 9
![]() |
Quote:
if you're using firefox you can also just get the "web development" toolbar extension which will give you a convenient "view css" button/menu along with a "view source" button. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|