css - Replacing whole div in Internet Explorer -


i have got <div id="head"> placed logo made in css. problem doesn't work in internet explorer. i'd ask if there way replace whole div div if it's opened in internet explorer. want open <div id="headie"> image of logo in internet explorer instead of using css doesnt work in it.

thank you.

example, opened in google chrome

<div id="head"><h1>logo</h1></div> 

but if it's going opened in internet explorer it's not going open <div id="head"><h1>logo</h1></div> open this.

<div id="headie"><h1>logo</h1></div> 

you can use conditional comments so:

<!--[if ie]>   <div id="headie"><h1>logo</h1></div> <![endif]--> <!--[if !ie]><!-->   <div id="head"><h1>logo</h1></div> <!--<![endif]--> 

but better if try write css works in browsers.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -