how to use two css style in a div or span


Tags: css,html

Problem :

how i can use two style on a div <div id="span,google"></span>



Solution :

You can't assign two id's like that, but you can use two classes:

<div class="span google"></div>

Also, you can't start the element as a div and close it as a span as in your code. I'll write that off as a typo, tho.

.span { some-css }
.google { other-css }

    CSS Howto..

    How to make text appears alitter above using html and css

    Show div at mouse click position, accounting for scrolling

    How to create a list with three columns in a row by css and html?

    How to use CSS transition effects

    How to use getElementId on and ID's Element

    How to avoid text selection in web page using css?

    How defile CSS rule path for iframe in cascade style sheet (CSS)?

    Dropdown Menu doesn't show all links and can't change css social media icons color

    How to read different CSS classes with the same beginning with jquery?

    How to get chevron to align to center of link tab

    How to apply css on one html file only

    How to make CSS Animation reverse on hover-out?

    JQuery UI Elements' Image not shown

    How to line up items of varied length in a resizable space in CSS?

    How do I restrict style to affect content only in modal?

    How can I force a table cell onto a new row

    How to change css file for this aim?

    How do I move the background image of a DIV based on the scrollbar movement?

    How to adjust button css styles

    How to make a table with no cells-per-row defined only with CSS

    How to horizontally center Twitter Bootstrap grid elements

    How many digits after the decimal point are interpreted in stylesheet rules?

    toggleClass: How does this CSS work?

    How to get row of floated images inside a div element to resize with browser window

    How to debug HTML5/CSS for background video in RoR app

    How to make a hidden face appear from the top using -webkit-transform: rotateX();

    Is not showing anything, or showing “undefined”

    How can I use a CSS selector to match two classes being present?

    How to style a completely different element when hovering over another element(with different parents)? [duplicate]

    how to vertically align this div?