www.webdeveloper.com
Results 1 to 2 of 2

Thread: Hot to get rid of this div with the CSS?

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    1

    Hot to get rid of this div with the CSS?

    Hot to get rid of this div with the CSS?

    <div style="width: 100%; text-align: center; margin: 5px 0 5px 0;">
    <a href=""""" /></a>
    </div><div id="hallinta"><a rel="nofollow" href="/wp-admin/"></a></div>
    <div id="page">

    I have tried to do it with this code:

    div[style="width: 100%; text-align: center; margin: 5px 0 5px 0;"] {
    display:none;
    }

    This code works in Opera, Crome, Firefox, but did not in IE??

    Is there another way to get rid of this with CSS? Or how to get it work with IE?

    Help me, please!

    - KPP

  2. #2
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,463
    Hi there KPP,

    and a warm welcome to these forums.

    Your code did work in IE10.

    CSS attribute do work in IE7+, but may be buggy.

    IE7 does not render 'element[style="xxxxxxxxx"]'.

    Source:-


    coothead

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles