Linked Questions
19 questions linked to/from How to assign multiple classes to an HTML container?
19
votes
4
answers
81k
views
Adding more than one class html [duplicate]
Is it possible to add more than one class in html?
Here is what i've tried:
<a href="#" class="class1" class="class2">My Text</a>
Thanks! :)
2
votes
3
answers
1k
views
HTML Space in Class Name [duplicate]
What's the deal with spaces in class names? I was told in my courses that they cannot contain spaces.
And yet I'm seeing on the website, that it has space name within a class. Are those 2 separate ...
0
votes
3
answers
1k
views
How to add multiple classes for ul element [duplicate]
How do I add another ul class to this line:
<ul class="sub-menu">
I tried to do like this:
<ul class="sub-menu"."insert">
But it didn't work...
-1
votes
2
answers
72
views
Are multiple class tags are valid in HTML? [duplicate]
The following HTML is right or wrong?
<div class="navbar" class="menu">foo</div>
Do the 2 classes both work?
0
votes
0
answers
179
views
Can we use two bootstrap class at same time? [duplicate]
Is there a way to combine class="text-left" & class = 'text-danger'of bootstrap, because I need to align the text to left and color the text red at the same time
-3
votes
1
answer
9k
views
How can I assign multiple classes to an image? [closed]
I want my img element to be both rounded and responsive. How can I do that?
I tried:
<img src = "someimage.jpg" class = "img-rounded" class = "img-responsive"/>
3
votes
2
answers
8k
views
Pnotify - javascript is working, css not
I found this cool little thing called pnotify, which provides really nice notifying alerts via javascript and bootstrap or jquery css but particulary css is not working for me.
I have this code:
&...
3
votes
2
answers
3k
views
jQuery need automatically fill only one input field (row) based on value in other field (autocomplete); all other fields must remain unchanged [closed]
This http://af-design.com/blog/2010/05/12/using-jquery-uis-autocomplete-to-populate-a-form/ script automatically fills state and zip, based on city.
There is one row with id like id="city". If I ...
0
votes
4
answers
1k
views
Changing display from block to none for multiple textareas
I'm currently trying to figure out how to make a text area disappear while another one will appear instead.
I have no knowledge of javascript and I have just started learning the basics of HTML and ...
-1
votes
1
answer
766
views
How to combine two classes for one button
I have a button that does copy function for me with the help of JS:
<button class="js-copy-btn" data-clipboard-target=".cb-target-1">E</button>
<p class="cb-...
0
votes
5
answers
721
views
JQuery toggle with multipls divs and icon
I've found examples where you can use a selectors to have multiple divs expand/collapse, but haven't seen one with the use of an icon when collapsed and one when expanded.
How can I adjust the ...
0
votes
2
answers
673
views
Using Bootstrap CSS. Have an issue - I change my class name and it no longer works
I have a Bootstrap CSS style:
.navbar-inverse .navbar-nav > li > a.active {
color: #428bca;
background-color: #e7e7e7;
}
I have the MVC 5 HTML as:
<li>@Html.ActionLink("Home", "...
2
votes
4
answers
493
views
How can I select an element based on an explicit match in BeautifulSoup?
There are two elements : <div class = "abc def"> and <div class = "abc">
I want to select the latter.
My code is
soup.find('div', {'class':'abc'})
However it select the former.
What ...
-2
votes
3
answers
460
views
How to target (or focus) more than one input through "FOR" attribute of a <label for="" >
I want to target more than one input through for.
something like
<label for="web-category,three-hundred-dollar" >Web design - $300</label>
<input name="category" type="radio" id="web-...
1
vote
2
answers
214
views
Multiple Class Naming Convention
Recently i have been looking into Plugins and i keep seeing class names such as
<div class="swiper-slide red-slide">
<div class="title">Slide 2</div>
<p>Keep ...