This question already has answers here:
How to redirect with CSS
(7 answers)
Closed 9 years ago.
How I can redirect to another webpage using CSS?
anyway to do that is acceptable. I can only edit style nothing more.
You can't
CSS is a styling language designed to give styles & animations to the elements in HTML
You'll need to use Javascript, and we'd be able to help more if you updated your question with some more information :)
You cant, CSS is only used to style the page.
But check out this Jquery redirect which you should be able to add How to redirect to another webpage in JavaScript/jQuery?
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
So I'm a bit lost. There are so many places to tuck away custom css between the WordPress customizer and Elementor Pro, and I added some css to style a couple little recurring anchor tags in a file sharing list, but now I can't remember where I put it and can't find it. I have looked in every place I can think of.
I know now that I can put all of my additional css in the theme file (I created a child theme for that reason) but that doesn't help me now to find that one darn line of code to edit it.
I did use the page source and found the css I added but where is the source file located so I can edit it?
I am completely self taught through various resources and prerecorded classes online so I don't know what I don't know. I am pretty good with working in WordPress but I am new to editing the file itself rather than using custom code on individual pages via a plugin.
Since you have not mentioned if the styles are applied to all web pages or to a particular page, I will try to help with the general answer which will help you to solve the problem you are experiencing. There are two ways you solve this issues one is adding styles to Elemantor Pro or by adding it to wordpress directly. To add styles to using Elemantor Pro is by right clicking on the element edit button and go to advanced and in advanced you will have custom CSS, for further info read more. Similarly you can to add custom CSS in wordpress by following link here
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am new to CSS and I wanted to know what is the best practice Internal Style or External Style or Inline Style as a beginner. Please tell me the basic difference also.
Here, you can find the differences between the three: https://www.w3schools.com/css/css_howto.asp
The most common one on regular websites are external stylesheets. It's the cleanest way because you separate your structure (HTML) from your styles (CSS). Internal CSS is not used a lot when hard coding a website, but it can be legit in some module based architectures. Inline CSS is also used a lot when you work with JavaScript to add styles to elements programmatically.
Edit: as cooskun wrote, the specificity is different between internal/external and inline. Inline get parsed at the end, so it is more specific. With internal and external it depends on which you declare last.
[Please try to Google your question before you post it, I am sure this has been asked before. I am not yet allowed to comment questions]
The first thing is the specificity. I could explain this detailed but it's better to have a look on this fancy website which explains the specificity perfectly.
CSS Specificity
The second reason is the code organization. If you prefer inline-style then you can't reuse your code and it makes the code hard to read, hard to maintain, hard to ...
My recommendation, go with external styles. When you have more experience in CSS, you will know where is the best place to use inline styles.
This question already has answers here:
Using RequiredFieldValidator to check if at least one of the two textboxes has some text inside?
(3 answers)
Closed 8 years ago.
In our asp.net app we have a user-control that allows users to upload files, on the page I am working on now I need to check if a textbox is not empty if, and only if, the user tries to upload a file.
Is there a way to do this?
This question has already been asking in a slightly different form. If you look here: https://stackoverflow.com/a/11243662/267903 there is a good answer that you will have to tweak slightly to achieve what you are after.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to know how css works under the hood.
Whether the html that gets download will be interpreted before CSS's interpretation or after?
Or it will apply as soon as DOM has been constructed by the browser. Please give me detailed clarification on this.
An HTML page is parsed the order it is built. if the CSS is parsed already, the elements that have styles in that parsed CSS will get styled immediately when they are laid in the page. That's why CSS is preferrably loaded in the <head> - before the tags in the body get a chance of being painted to the page.
if you load the CSS late, then elements will be shown in their "unstyled form" until their styles (it any) are parsed. this is what's known as "FUOC" or "Flash Of Unstyled Content"
This page provides many details about that.
http://www.westciv.com/style_master/academy/css_tutorial/introduction/how_they_work.html
http://www.westciv.com/style_master/academy/css_tutorial/introduction/what_are_ss.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I want to buid a web page. The page contains a drop down which should look like this:
alt text http://img694.imageshack.us/img694/9350/dropdown.png
Is it possible using CSS or I would need to use a image with some javascipt?
You won't be able to style a select box like this. You have to make a custom one using JavaScript.
You can make using this jquery plugin
http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
Yes it's possible without Javascript as long as the dropdown is to open automatically when you move the mouse over the button. "Son of suckerfish" is a popular drop-down menu implementation with only minimal added Javascript for older browsers, I have never used it for a standalone button but it should be easy to achieve.
A click-sensitive dropdown can't, to my knowledge, be done using pure CSS.
Edit: on second reading, I'm not sure what exactly you mean. Are you talking about the hand-drawn look of the button, or the behaviour of a dropdown button?
You would need to use a combination of CSS and javascript to create a custom select box. Unfortunately, elements aren't very stylable in most browsers.
EDIT
An example: http://lab.aspektas.com/select/select.html