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 load css and js

    How to make a CSS/javascript feature like this website? [closed]

    How can I ensure this CSS transition animates

    How can i create a hexagon shape with an image inside? [duplicate]

    How do I center a background image to its parent element?

    How to color portion of text using css or jquery

    css scroll/touch slide view - how to use -ms-scroll-snap or the like?

    How to use jQuery to find a certain string within a div, and then apply specific styles to another div if it exists? [closed]

    How to use toggle css classes on an element onclick?

    How to create popup panel using JavaScript & CSS, no libraries?

    How to design the vertical scroll bar or customize the vertical scroll bar design?

    How to make a TableLayoutPanel like resizable div in html

    How to override CSS of RichFaces components with custom CSS

    How to make input box show up from right to left?

    How to create a 1px height div in IE8

    How do the Sass variables get assigned to CSS selectors with Foundation 4?

    How to make jQuery target and attach a plugin call to hundreds of CSS ID's with an ID number at the end of them?

    How to use nify javascript to make round corner box? Im using but not working

    How to use the .css function with jQuery

    How to make table by CSS?

    How can I create an inline grouped listview in windows 8

    How to replace default controls with custom buttons in Fancybox 2.1.5?

    How can I set css for a class in a class?

    How to make mobile menu transition “backwards”?

    How to bottom center a span inside a list item

    How to use a variable in my href path in html

    How to add animated gif to an image sprite?

    Selenium: how to define css if webpage has mutiple elements with same name

    How to add css properties inside the PHP tag

    CSS how to align vertically center div floating elements of menu?