Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to redirect with CSS

Tags:

html

css

Is there a way to make a Web page of which one can modify only the CSS display an entirely different page when viewed by a user?

like image 238
Ryan Lester Avatar asked Feb 24 '11 23:02

Ryan Lester


People also ask

Can you redirect with CSS?

You need to manipulate the content css attribute. See this question for more information. To achieve your overlay or redirect effect, you would need to use content to add either javascript that would allow you to redirect or an element capable of showing other content, like an iframe.

How do I redirect a link in CSS?

location. href = "http://new-website.com"; window. location. assign("http://new-website.com"); window.

How do I redirect a website to another URL?

The simplest way to redirect to another URL is to use an HTML <meta> tag with the http-equiv parameter set to “refresh”. The content attribute sets the delay before the browser redirects the user to the new web page. To redirect immediately, set this parameter to “0” seconds for the content attribute.

How do I redirect a URL in HTML?

To redirect from an HTML page, use the META Tag. With this, use the http-equiv attribute to provide an HTTP header for the value of the content attribute. The value in the content is the number of seconds; you want the page to redirect after. Set the content attribute to 0, if you want it to load immediately.


1 Answers

Does csszengarden.com do what you are thinking?

like image 89
Keltex Avatar answered Nov 15 '22 06:11

Keltex