southerndownhill.com advertisement.png, 0 kB
Welcome, Guest. Please Login or Register.
January 08, 2009, 18:26:28 PM
Show unread posts since last visit.
Forum Help Calendar Login Register
News: Want to know more about The Search?  Check out the frontpage.
 

+  southerndownhill.com - Forum
|-+  General
| |-+  Southerndownhill Website Stuff
| | |-+  CSS help needed
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: CSS help needed  (Read 1088 times)
[Al]
Site Admin
God Like!
*****
Online Online

Gender: Male
Posts: 8728


Currently working on SDH v0.9


WWW
CSS help needed
« on: May 03, 2007, 11:51:29 AM »

Okay, I'm stumped. I'm not HTML/CSS expert and I think my problem is going to need one!

It seemed a trivial request from Yidwann, "Al, can you make the box with the border for the left and right side stuff extend all the way to the bottom on long articles?".

Basically if you look at the SDH homepage and scroll down, the right box stops under the "freecaster preview" and the left under the google adwords. We'd like them to continue, blank inside with the 1px border, to the bottom of the page.

But try as I might, I can't. If any CSS wiz can tell me which element I need to modify, and how, I would be very appreciative.

FYI here is what I tried.
- Adding height: 100%; to the left_outer.
- Adding height: 100%; to the left_inner too.
- Adding height: 100%; to table.content
- Adding height: 100%; to table.content.td
- Adding height: 100%; to the main table
- Adding height: 100%; to td#outline
- I think nearly every combination of the above.

None work. Help!


Logged

Rides: DH - SC Bullit.2/Totems/Hopes. XC - SC Heckler/Pikes(Push)/XTs. Road - Kaffenback.
Ride fast, take chances. Just don't blame me when you fall off.
XC-Stev
Senior
****
Offline Offline

Posts: 611



Re: CSS help needed
« Reply #1 on: May 03, 2007, 12:06:35 PM »

I always find it a pain making things stretch to the bottom. But i think this will work:

display:block;
height: 100%;

not sure which one to add it to, haven't have a proper look at your coding.

Steve
Logged

XC-Stev
Senior
****
Offline Offline

Posts: 611



Re: CSS help needed
« Reply #2 on: May 03, 2007, 12:18:23 PM »

no forget that doesn't work!
Logged

[Al]
Site Admin
God Like!
*****
Online Online

Gender: Male
Posts: 8728


Currently working on SDH v0.9


WWW
Re: CSS help needed
« Reply #3 on: May 03, 2007, 12:21:09 PM »

no forget that doesn't work!
I know, just tried it Wink
Logged

Rides: DH - SC Bullit.2/Totems/Hopes. XC - SC Heckler/Pikes(Push)/XTs. Road - Kaffenback.
Ride fast, take chances. Just don't blame me when you fall off.
DHE-8 Dave
God Like!
*****
Offline Offline

Gender: Male
Posts: 2487


^ you see, I do ride... sometimes :-/


WWW
Re: CSS help needed
« Reply #4 on: May 03, 2007, 12:36:23 PM »

Had a quick go and got the right one working in firefox. Soz well busy doing similar stuff at work so no time to do the other and test properly for now.

Anyway...
Give the main table an id.

Code:
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="908">
<tr>

That one there ^ and say height:100%;
Then apply height:100%; to the #right_outer, #right_inner,#content_inner,#content_outer.
Then mess with the margin and padding a tad so it fits good at the botton. See below not quite perfect but busy soz.
« Last Edit: May 03, 2007, 12:58:03 PM by DHE-8 Dave » Logged

Dave
http://www.crankspinracing.co.uk/
Morzine/Les Gets 28th July - 4th August
[Al]
Site Admin
God Like!
*****
Online Online

Gender: Male
Posts: 8728


Currently working on SDH v0.9


WWW
Re: CSS help needed
« Reply #5 on: May 03, 2007, 16:00:34 PM »

I'm sure I tried that table, but I am a forgetful clumsy old sod! I'll give it a go this evening. Cheers!
Logged

Rides: DH - SC Bullit.2/Totems/Hopes. XC - SC Heckler/Pikes(Push)/XTs. Road - Kaffenback.
Ride fast, take chances. Just don't blame me when you fall off.
DHE-8 Dave
God Like!
*****
Offline Offline

Gender: Male
Posts: 2487


^ you see, I do ride... sometimes :-/


WWW
Re: CSS help needed
« Reply #6 on: May 03, 2007, 17:18:17 PM »

May need to 100% the .content_table as well ive just been applying 100% to all tables as there is not an id to distinguish that other one yet so it will have included .content_table in that sweep.

The left side is even easyer, again 100% that table with no current id then, 100% height #left_inner and #left_outer. Then fiddle with .outline's bottom padding 160px ish say?
« Last Edit: May 03, 2007, 17:47:49 PM by DHE-8 Dave » Logged

Dave
http://www.crankspinracing.co.uk/
Morzine/Les Gets 28th July - 4th August
Simon N
Full Member
***
Offline Offline

Gender: Male
Posts: 161


www.free-riders.co.uk


WWW
Re: CSS help needed
« Reply #7 on: May 03, 2007, 21:52:42 PM »

open up template_css.css

FIND
Code:
#left_inner {
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

REPLACE WITH
Code:
#left_inner {
        height: 120pc;
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

FIND
Code:
#right_inner {
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

REPLACE WITH
Code:
#right_inner {
        height: 120pc;
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

SAVE AND UPLOAD

Try the above and see if thats what you were trying to achieve. Laid out the changes as simply as I could but basically you are adding height: 120pc; to both the left and right inner css styles.

Oh pc would be percent!

Hope this helps
Logged

http://www.free-riders.co.uk
DH Orange Big T: totems, saints, codes XC Specialized Stumpjumper Elite ROADGenesis Flyer
[Al]
Site Admin
God Like!
*****
Online Online

Gender: Male
Posts: 8728


Currently working on SDH v0.9


WWW
Re: CSS help needed
« Reply #8 on: May 03, 2007, 22:49:50 PM »

Oh pc would be percent!
pc is picas, not percent. http://www.w3.org/TR/REC-CSS1#length-units

True, if I set the height to 120pc the front page works, but the NPS report doesn't. Take a look, I've left the CSS with 120pc in live.

I think Dave's table height is correct, as the height is relative to the parent unit, but fiddling with tables on the live site isn't something I'm going to do tonight (dev is down).
Logged

Rides: DH - SC Bullit.2/Totems/Hopes. XC - SC Heckler/Pikes(Push)/XTs. Road - Kaffenback.
Ride fast, take chances. Just don't blame me when you fall off.
DHE-8 Dave
God Like!
*****
Offline Offline

Gender: Male
Posts: 2487


^ you see, I do ride... sometimes :-/


WWW
Re: CSS help needed
« Reply #9 on: May 04, 2007, 12:30:17 PM »

open up template_css.css

FIND
Code:
#left_inner {
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

REPLACE WITH
Code:
#left_inner {
        height: 120pc;
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

FIND
Code:
#right_inner {
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

REPLACE WITH
Code:
#right_inner {
        height: 120pc;
        border: 1px solid #cccccc;
padding: 2px;
        float: none !important;
        float: left;
}

SAVE AND UPLOAD

Try the above and see if thats what you were trying to achieve. Laid out the changes as simply as I could but basically you are adding height: 120pc; to both the left and right inner css styles.

Oh pc would be percent!

Hope this helps

What is the point in !important-ing the float none combined with the float left. Surely it's just gunna ignore the float left so you mite as well remove it all together. Huh
Logged

Dave
http://www.crankspinracing.co.uk/
Morzine/Les Gets 28th July - 4th August
[Al]
Site Admin
God Like!
*****
Online Online

Gender: Male
Posts: 8728


Currently working on SDH v0.9


WWW
Re: CSS help needed
« Reply #10 on: May 04, 2007, 16:14:22 PM »

What is the point in !important-ing the float none combined with the float left. Surely it's just gunna ignore the float left so you mite as well remove it all together. Huh
Its all to do with how different browser render multiple layers, esp IE5.
Logged

Rides: DH - SC Bullit.2/Totems/Hopes. XC - SC Heckler/Pikes(Push)/XTs. Road - Kaffenback.
Ride fast, take chances. Just don't blame me when you fall off.
DHE-8 Dave
God Like!
*****
Offline Offline

Gender: Male
Posts: 2487


^ you see, I do ride... sometimes :-/


WWW
Re: CSS help needed
« Reply #11 on: May 04, 2007, 16:33:40 PM »

What is the point in !important-ing the float none combined with the float left. Surely it's just gunna ignore the float left so you mite as well remove it all together. Huh
Its all to do with how different browser render multiple layers, esp IE5.

We don't even bother supporting below 5.5 at work as 5 struggles with even the simplest of modern components.
Logged

Dave
http://www.crankspinracing.co.uk/
Morzine/Les Gets 28th July - 4th August
Simon N
Full Member
***
Offline Offline

Gender: Male
Posts: 161


www.free-riders.co.uk


WWW
Re: CSS help needed
« Reply #12 on: May 04, 2007, 19:57:17 PM »

I made no changes to the existing css other than the height...the important(cy) issue is already set in joomla

Since changing inner right and left has impact elsewhere its a simple case of creating a new css funstion for the borders and then changing the existing code to match.


Seriously though why have the box stretch allt he way down it looks pants!

With dhe dave too...supporting lesser browsers is kinda pointless. Force the buggers into updating!
Logged

http://www.free-riders.co.uk
DH Orange Big T: totems, saints, codes XC Specialized Stumpjumper Elite ROADGenesis Flyer
DHE-8 Dave
God Like!
*****
Offline Offline

Gender: Male
Posts: 2487


^ you see, I do ride... sometimes :-/


WWW
Re: CSS help needed
« Reply #13 on: May 04, 2007, 22:18:16 PM »

Just had a look into your method Simon, works great on the home page but as i suspected it was flawed by the use of fixed dimensions on a dynamic site so other pages don't work.

Another method would be to simply whack a 1 row, 3 column table around the 3 bars. the left and right column will just adjust to the height of the middle automatically.
Logged

Dave
http://www.crankspinracing.co.uk/
Morzine/Les Gets 28th July - 4th August
Simon N
Full Member
***
Offline Offline

Gender: Male
Posts: 161


www.free-riders.co.uk


WWW
Re: CSS help needed
« Reply #14 on: May 04, 2007, 23:33:19 PM »

All well and good if it was static but uses joomla and as such can have additional sidebars and sections turned on and off so needs to be done slightly differently.

My way was a basic "heres where to go and make changes" type of way.. I have my own site to try and get running smoothly.
Logged

http://www.free-riders.co.uk
DH Orange Big T: totems, saints, codes XC Specialized Stumpjumper Elite ROADGenesis Flyer
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

advertisement.png, 0 kB
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid HTML 4.01! Valid CSS!
Page created in 0.144 seconds with 20 queries.