Coding questions

I've now realised mucking around with the .htaccess file isn't a good idea, I think I've broken something.
 
That's what I thought, but supposedly htaccess is different? Anyway, hopefully it'll be sorted soon, some kind of fault happened.
 
An error came up saying 'site not found' even though everything was seemingly in place. Quite frustrating when you've been working (I say working, waiting for content) on a site for 9 months, but it's all finished now.

We've gone with a simple PHP redirect, I don't think it's the best choice for SEO but as her site is new she'll lose practically no SEO value from it as there'll be no links going to the .co.uk, all going straight to the .com
 
Do it in the page then, as opposed to the .htaccess. Just drop this into the site's header include:

PHP:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>
 
Is it best to always use 'background-image:x;' or is it alright to use the <img /> tag, depending on the circumstances?
 
Hi Fred, what are the circumstances?

If its for text replacement you can either used the <img src="" alt="text displayed in the image" /> or use text and give it a class then use the image as background image and give the text-indent:-99999 to hide the text from browsers but show the image (there are a few methods for this)

Edit: Harry beat me to it!
 
Cheers lads.

Simply put, it's a button. I've put it in as <img /> but when looking at css image rollovers they seem to require it as 'background-image:x;'.

I guess it doesn't matter too much, but it's always best to try and get it just right :)
 
Xenonsoft said:
Cheers lads.

Simply put, it's a button. I've put it in as <img /> but when looking at css image rollovers they seem to require it as 'background-image:x;'.

I guess it doesn't matter too much, but it's always best to try and get it just right :)

Okay, is it a button in the literal form element sense? I fso you have the input type="image" solution.

If it's an a styled to resemble a button, use text and add the image as a background. Do you have a live URL?
 
Right. So I shouldn't just use an image for a button?

It's styled to resemble a button, it's not coded as one.

Haven't a live URL currently, working offline, but the design is HERE, I'm just talking about the nav buttons at the top.
 
Back
Top