WCA blog banner!

Whitewater and touring

WCA blog banner!

Postby Tom_Laws on Fri Mar 23, 2007 6:34 pm

Sorted by Mitch....

Instructions for wordpress users. I will do blogger and normal Html in a min.

Check out http://tomlaws.wordpress.com/wca-banner/

Cheers

Tom
Last edited by Tom_Laws on Fri Mar 23, 2007 7:13 pm, edited 2 times in total.
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby Tom_Laws on Fri Mar 23, 2007 6:40 pm

Just having some cache issues, check back real soon!
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby mattr on Fri Mar 23, 2007 6:41 pm

It just appears as a red cross in the corner of the screen for me :-(

Edit - Tom beat me to it
Last edited by mattr on Fri Mar 23, 2007 6:52 pm, edited 1 time in total.
User avatar
mattr
 
Posts: 22
Joined: Mon Feb 19, 2007 9:13 pm
Location: Derby

Postby Tom_Laws on Fri Mar 23, 2007 6:48 pm

Right, got it sorted, instructions for wordpress are up!
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby mitch on Fri Mar 23, 2007 7:16 pm

Looks like the guys at Team-Tea are backing this too...
mitch
 
Posts: 233
Joined: Tue Aug 09, 2005 10:06 am
Location: Chester

Postby RobMoffatt on Fri Mar 23, 2007 8:16 pm

Sorry to be thick but:

I copied the stuff into my CSS and into the sidebar widget thingy, and when I previewed my page there was a message telling me that in order for me to save the new settings in my CSS I had to buy a Custom CSS add on. Do I have to? or have I made some numpty error somewhere?
User avatar
RobMoffatt
 
Posts: 954
Joined: Thu Jul 21, 2005 2:37 pm
Location: Bristol or Oxford

Postby Tom_Laws on Fri Mar 23, 2007 8:19 pm

RobMoffatt wrote:Sorry to be thick but:

I copied the stuff into my CSS and into the sidebar widget thingy, and when I previewed my page there was a message telling me that in order for me to save the new settings in my CSS I had to buy a Custom CSS add on. Do I have to? or have I made some numpty error somewhere?


To edit CSS on wordpress you have to buy (for a measly couple of quid) the CSS editor. Well worth it in my opinion. Then you can do all manner of silly things, or even add camo!!

Hope that helps.

Tom
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby David McCraw on Fri Mar 23, 2007 8:56 pm

Can anyone help with getting the image to float over the centre of the page, rather than just the top right?

I'd like it on the corner of my site (over the actual site) but I can't figure out a way that works in IE (Firefox allows you to put it inside a centred div, with float:right).
David McCraw
 

Postby lozbrown on Fri Mar 23, 2007 8:58 pm

Excellent, I knew someone would do it if I posted up about it.

However it doesn't seem to be rendering quite right on your site tom, it's not quite at the top of the page...
User avatar
lozbrown
 
Posts: 506
Joined: Mon Sep 20, 2004 10:24 pm
Location: Reading

Postby Rockrat on Fri Mar 23, 2007 9:03 pm

I can't even get it to go on a Blogger blog. Maybe it's because my whole knowledge on CSS, HTML and Widgets has been based on trial, error with a bit of luck thrown in.
Iain Robinson
rockratrobinson
User avatar
Rockrat
 
Posts: 1255
Joined: Thu Dec 23, 2004 8:39 pm
Location: Carlisle, Cumbria

Postby RobMoffatt on Sat Mar 24, 2007 12:12 am

Tom_Laws wrote:To edit CSS on wordpress you have to buy (for a measly couple of quid) the CSS editor. Well worth it in my opinion. Then you can do all manner of silly things, or even add camo!!

Hope that helps.


Cheers Tom, will try and sort it out after work.
User avatar
RobMoffatt
 
Posts: 954
Joined: Thu Jul 21, 2005 2:37 pm
Location: Bristol or Oxford

Postby Tom_Laws on Sat Mar 24, 2007 1:47 am

lozbrown wrote:Excellent, I knew someone would do it if I posted up about it.

However it doesn't seem to be rendering quite right on your site tom, it's not quite at the top of the page...


Its set to be hard right, and about 25 pixels south of the top, so people who are logged into wordpress can see the whole thing. I'm just piddling about with it at the mo.

Pat C has one on his blogger blog, so it must be possible.

Tom
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby Rockrat on Sat Mar 24, 2007 8:32 am

Looking at Pat C's code I've managed to get the first part of the code in place, but don't know where to locate this bit:

Code: Select all
<div class=”badgecorner”><a href=”http://access2water.wordpress.com”>[img]”http://www.countrywideweekends.btinternet.co.uk/notacrime.gif”%20alt=”Kayaking%20is%20Not%20a%20Crime”%20Title=”Kayaking%20is%20not%20a%20crime”%20/[/img]</a></div>




Any help? I've tried including it as a sidebar widget.
Iain Robinson
rockratrobinson
User avatar
Rockrat
 
Posts: 1255
Joined: Thu Dec 23, 2004 8:39 pm
Location: Carlisle, Cumbria

Postby Tom_Laws on Sat Mar 24, 2007 10:40 am

I think on Blogger it has to be located within the body tags?
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby robt on Sat Mar 24, 2007 12:39 pm

Cool. Neat stuff.

However, may I take the liberty of throwing in an alternative implementation for some variety. The problems with Tom/Mitch's code as it stands is:

a) it can easily fall behind other content (e.g. blogger header covers bit of the banner).

b) The whole rectangle containing the banner is clickable. Ideally, you'd want just the banner to be clickable.

This alternative addresses these issues, and is effectively a faithful deconstruction of the make poverty history banner.

Maybe that helps someone, anyhow.
User avatar
robt
 
Posts: 531
Joined: Fri Mar 07, 2003 4:25 pm
Location: Abergavenny

Postby lozbrown on Sat Mar 24, 2007 12:45 pm

Nice one Rob, thats exactly what I was looking for
User avatar
lozbrown
 
Posts: 506
Joined: Mon Sep 20, 2004 10:24 pm
Location: Reading

Postby robt on Sat Mar 24, 2007 12:48 pm

David McCraw wrote:Can anyone help with getting the image to float over the centre of the page, rather than just the top right?


I don't really get what you mean (why float it, isn't it absolutely positioned?), but if your problem is that the main site div covers it up, try adding the following css to the banner div:

Code: Select all
z-index:1000000000;
User avatar
robt
 
Posts: 531
Joined: Fri Mar 07, 2003 4:25 pm
Location: Abergavenny

Postby Rockrat on Sat Mar 24, 2007 4:49 pm

Now got it on Blogger. Had to change all the " to ' and it worked. Take a look: http://rockratrobinson.blogspot.com
Iain Robinson
rockratrobinson
User avatar
Rockrat
 
Posts: 1255
Joined: Thu Dec 23, 2004 8:39 pm
Location: Carlisle, Cumbria

Postby David McCraw on Sat Mar 24, 2007 4:54 pm

robt wrote:I don't really get what you mean (why float it, isn't it absolutely positioned?)


That's exactly the problem. My site isn't absolutely positioned, but I'd like it to look like this:

Image

I thought some kind of relative positioning might have worked, but IE spat out the dummy.
David McCraw
 

Postby robt on Sat Mar 24, 2007 5:43 pm

David McCraw wrote:I'd like it to look like this


Ah, I totally misunderstood. You should still be able to do this with absolute positioning. I'll use my example, as I have a convenient local copy to play with, but the same could be done for the original.

The right hand banner is placed in position using a positive and negative margin (banner is 163px wide):

Code: Select all
div.noCrimeRight
{
position:absolute;
left:100%;
top:0px;
margin:0 0 0 -163px;
}


As you have an 800px wide site container (I think), then you want to place it absolutely in the centre, and offset it a little to the right. Chnage the left to 50%, and the margin goes from -ve to +ve; 800/2-163=237px..

Code: Select all
div.noCrimeRight
{
position:absolute;
left:50%;
top:0px;
margin:0 0 0 237px;
}


Looks like it's working in IE7+FF. I'm not sure if it will break if your browser window is smaller than 800px width, not sure, worth double checking.

You'll have another problem, though: if you do it like this, you're 'links' menu button won't work :-P. Maybe make the banner smaller?
User avatar
robt
 
Posts: 531
Joined: Fri Mar 07, 2003 4:25 pm
Location: Abergavenny

Postby David Fairweather on Sat Mar 24, 2007 5:55 pm

I've put it up on my blog now. Cheers to everyone that's helped to put it together, I can see this being one of those effective viral ways of spreading a message that TimS keeps talking about.
User avatar
David Fairweather
 
Posts: 2326
Joined: Tue Jul 27, 2004 8:04 pm
Location: Manchester

Postby Patrick Clissold on Sat Mar 24, 2007 6:27 pm

I have a little problem with it on my blog. As you can see the search blog bar on the top partially obscures the banner. Any suggestions/

Also due to playing around with it have mucked it up so the faint lines above and below "Clissold's Adventures" are all weird now. Anyone know who to put them back where they came from?
User avatar
Patrick Clissold
 
Posts: 1385
Joined: Thu Mar 10, 2005 6:38 pm
Location: Gosport

Postby David Fairweather on Sat Mar 24, 2007 6:31 pm

Pat, as a crude and simple fix, you can move the banner down the page by changing this:

position: absolute;
right: 0;
top: 0;


to this:

position: absolute;
right: 0;
top: 30;


Which will just move the banner down the page by 30 pixels.

I'm sure there are much smater ways to do the same thing., people smarter than myself would be the ones to ask.
User avatar
David Fairweather
 
Posts: 2326
Joined: Tue Jul 27, 2004 8:04 pm
Location: Manchester

Postby Patrick Clissold on Sat Mar 24, 2007 6:36 pm

I tried that and it doesn't have the desired affect. The banner is now too low. Any number other than 0 I put in to top it moves the banner to the same position.
User avatar
Patrick Clissold
 
Posts: 1385
Joined: Thu Mar 10, 2005 6:38 pm
Location: Gosport

Postby robt on Sat Mar 24, 2007 6:43 pm

Try putting this as an extra line after the top: 0; line:

Code: Select all
z-index:1000000000;


It won't move it, but it should now display over the top bar rather than under it.
User avatar
robt
 
Posts: 531
Joined: Fri Mar 07, 2003 4:25 pm
Location: Abergavenny

Postby Patrick Clissold on Sat Mar 24, 2007 6:44 pm

Sorry Rob it still lies behind the bar.
User avatar
Patrick Clissold
 
Posts: 1385
Joined: Thu Mar 10, 2005 6:38 pm
Location: Gosport

Postby robt on Sat Mar 24, 2007 7:04 pm

Ah, the source div (<div class=”badgecorner”>..</div>) is probably nested inside another div, which stops this working. I don't know what access to the source code you have in blogger, but it should work if you can move the source div outside all the other ones. If that makes any sense.

Actually, insetad in your case try adding:

Code: Select all
#sidebar
{
z-index: 10000;
}


..after the end of all your other css.

I don't know why the simple offset isn't working for you. Just check it isn't something silly like a lack of unit label (the 'px') maybe (?):

Code: Select all
position: absolute;
right: 0;
top: 30px;


I feel like a helpdesk. But at least I'm now off to the pub!
Last edited by robt on Sat Mar 24, 2007 7:09 pm, edited 2 times in total.
User avatar
robt
 
Posts: 531
Joined: Fri Mar 07, 2003 4:25 pm
Location: Abergavenny

Postby Patrick Clissold on Sat Mar 24, 2007 7:12 pm

Thanks Rob, I added units and it now works.

Off to the pub?? I would have thought you wouldn't want anything to do with alcohol after last night!
User avatar
Patrick Clissold
 
Posts: 1385
Joined: Thu Mar 10, 2005 6:38 pm
Location: Gosport

Postby Tom_Laws on Sat Mar 24, 2007 7:43 pm

Huge thanks to Rob for dealing with all this geekery, which I couldn't have done, not least because I was up to my neck in water in my squirt boat :D

Tom
User avatar
Tom_Laws
 
Posts: 7016
Joined: Mon Aug 09, 2004 8:37 am
Location: North Wales

Postby David McCraw on Sun Mar 25, 2007 4:29 pm

robt wrote:As you have an 800px wide site container (I think), then you want to place it absolutely in the centre, and offset it a little to the right. Chnage the left to 50%, and the margin goes from -ve to +ve; 800/2-163=237px..


Crikey Rob... nice work..

I just had to add an area to the map for my RSS icon to poke through - job's a good one!
David McCraw
 


Return to Inland

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 8 guests