Button VS a-tag [closed] - javascript

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 9 years ago.
Improve this question
In our application we use A-tags to create all custom styles elements, such as custom CSS buttons.
We alter the A-tags with our CSS and set href='javascript:void(0)'.
The main problem is with Chrome showing the bottom label 'javascript:void(0)' on hover.
Can we just switch all A-tags to button, or is there some major drawback we have consider?
Thanks...

You shouldn't be using an anchor tag in the first place if your anchor tag doesn't point to a URL and is being used as a button. That's sort of like wrapping your text in <b> tags and making it italic.
Making your HTML semantically correct is a good practice, so no, there are no downsides aside from dealing with browsers' default styles for the <button> element.

Related

How to make accordion on clear css without bootstrap and html? [closed]

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 25 days ago.
Improve this question
I can't build accordion on clear css
I have tried a lot of things, but I still can't do it
You can't.
In fact you cant make pretty much anything without HTML (As for Bootstrap is 'just' a wrapper for HTML, CSS and JS.). HTML says where what element is, aka. places the content. CSS defines how it looks and behaves (for the later, you also may need JavaScript).
An accordion in fact needs all three (See this question/answer.)

Fancybox customize specified thumb [closed]

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 3 years ago.
Improve this question
I using fancyBox v3.5.6.
I need to add a CSS class/id/style-attribute to a specific thumb element. I can't do this with changing template, because it will change all thumbs and there is no logic with count of thumbs, and then i can't use css pseudoselectors like last-child or nth-child. I didn't find solution in fancy docs and googling.
Here is an example https://prnt.sc/qqmwbz
Inspect thumbnail elements, each of them has has data-index attribute (for example, data-index="1"), you can use that to do some customization.

Is there way to dynamically click bind every word in a div [closed]

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 6 years ago.
Improve this question
I am trying to bind every word in an element without actually changing the markup in the element with Javascript
The short answer: No.
If you REALLY wanted to do this, I suppose you could write a script that went through the div and manually added the markup for you. And then you could add click events to the automatically added markup.
But then you would just be writing a script that adds the markup you don't want to.
So long answer: No, not without adding markup in some context.

how can I fetch a website and overwrite some ot its html and css [closed]

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 7 years ago.
Improve this question
I would like to create a website, which would fetch someone's website and display it with my CSS. It would also delete few html tags, how can I do this?? Any tips, what to search internet for??
I would go about it using <iframes>. They let you do a lot in terms of changing existing things on websites.
You would use something like this:
<iframe src="http://www.stackoverflow.com" width="200" height="200"></iframe>
to display the site, then you can inspect element to get their .class and .id names to change out colors with normal CSS
Some websites use protection so they cannot be viewed in an iframe, Google is one of them, for future reference, if you run into this issue, this explains why.

Javascript - lock css rule [closed]

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
Is there any concrete way to lock a css rule on an element to be sure it cannot be altered or changed from the browser?
I put a webkit filter on an element abd i would like this to be not altered or removed but afaik is not possible...?!
Or any way to trigger js to get element css rule to stay also if edited from a person by browser !?
You can use the !important CSS rule to make sure none of your other CSS rules override something, for example:
p {
color: red !important;
}
This would ensure all p tags get colored red, and that nothing with a higher priority changes the color to something else.
There is no way to prevent a user from altering HTML, CSS or Javascript from their browser.

Categories

Resources