Welcome, Guest. Please login or register.
November 22, 2008, 02:30:19 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) released!
For more information look here.
The announcement board can be found here.
68091 Posts in 10810 Topics by 6527 Members
Latest Member: borut
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Archive
| | |-+  CSS mod to news module
Pages: [1] Go Down Print
Author Topic: CSS mod to news module  (Read 1095 times)
rabsaul
Almost Master Baker
*****
Online Online

Posts: 246


WWW
« on: August 23, 2006, 05:57:45 AM »

I discovered that the table-based layout of the News module was breaking the template I had made for one of my clients, so I went into the add .p h p file in the module and customized it into an all-CSS version. I'm making this mod available for anyone who wants to use it. You can find the download and instructions on this page:

http://www.pactumweb.com/extras/websitebaker.php

(See the News Module modification heading.)

Please note that this has not been tested on older versions of WB, but since the only thing that was changed is HTML and CSS, I would have to assume that it should match up precisely with the compatibility limits of the current version of the News module.

Hope someone finds this of use. Of course, there may be colours/font matters you'll want to tweak to fit your own template.

Edit: I should also note that I did some minor tweaking with the use of headings, so that there would not be redundancy or un-semantic use of tags. (I.e. with this mod, your blog pages will only have one h1 tag on the page - the one automatically supplied by WB as your page title when you created your news page - and the h2, h3, and h4 will follow along behind properly.)
« Last Edit: August 23, 2006, 06:02:12 AM by rabsaul » Logged
kweitzel
Forum Team
A Baker's Baker
*****
Offline Offline

Posts: 4452


WWW
« Reply #1 on: August 23, 2006, 09:04:14 AM »

good thinking ... the issue is actually known. You might also stumble across it in other modules. If the table is set to 100% width it breaks CSS based Layouts in IE.

cheers

Klaus
Logged

rabsaul
Almost Master Baker
*****
Online Online

Posts: 246


WWW
« Reply #2 on: August 24, 2006, 03:25:11 AM »

good thinking ... the issue is actually known. You might also stumble across it in other modules. If the table is set to 100% width it breaks CSS based Layouts in IE.
Not just IE - an all-CSS layout that has a floated item inside the same container as the table is also going to be a problem, in any browser. It's not a bug.
Logged
mathetos
Apprentice Baker
***
Offline Offline

Posts: 82


Get in touch... autotheography.tk


« Reply #3 on: August 30, 2006, 02:09:55 PM »

rabsaul,
Thanks so much, you just saved me a bit of time! I was about to do the same when I thought "You know maybe someone wiser and able-er already did this" and low and behold I found your post.

Thanks, it works great so far!
~mathetos~
Logged
kweitzel
Forum Team
A Baker's Baker
*****
Offline Offline

Posts: 4452


WWW
« Reply #4 on: August 30, 2006, 03:09:57 PM »

OK Guys,

I packed it into a complete Module for everybody to use. This does replace the existing news-module. It makes Installation a lot easier. It is provided "as is" without any warranty. Use it on your own risk ...

@Tim If you want to, you can replace your little "tutorial" on your site with this Module.

cheers

Klaus
Logged

Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!