Results 1 to 6 of 6

Thread: Help ! -webkit- & border issues with Chrome

  1. #1
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Help ! -webkit- & border issues with Chrome

    Hi....

    I have been struggling with an issue that's been a huge headache, and much teeth grinding.... Lol....

    Anyways,,,, I am trying to design my first WordPress Blog. I have intermediate CSS and CSS3 Skills, so this shouldn't be a problem right? Well not so the case, yikes !

    I had placed a Search Form within the Header of my Blog, looks great in Firefox, IE and Opera. But one problem, Chrome and Safari seems to reject my style of CSS....

    I placed a Border around and a -Webkit-Box-Shadow within the ( Forms Input Element ), but I cant see either when checking it out in both Chrome and Safari.

    Code:
    header input#s {	
    	-moz-box-shadow: inset 2px 2px 5px #202020 !important; /* Firefox */
    	-o-box-shadow: inset 2px 2px 5px #202020 !important; /* Opera */
    	-webkit-box-shadow: inset 2px 2px 5px #202020 !important; /* Safari, Chrome */
    	box-shadow: inset 2px 2px 5px #202020 !important; /* CSS3 */						
    	font-size: 1.4em;
    	height: 28px;
    	padding: 0 5px 0;	
    	width: 240px;
    }
    Code:
    <form action="<?php bloginfo('siteurl'); ?>" id="searchform" method="get" role="search">
        <div>  
        	<label for="s" class="screen-reader-text">Search for:</label>    
            <input type="search" id="s" name="s" value="" />
                 
            <input type="submit" value="Search" id="searchsubmit" />
        </div>
    </form>
    Please, can anyone save me....
    Last edited by mooapo; 06-29-2012 at 04:12 PM. Reason: Adjust the wording....

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by mooapo View Post
    Hi....

    I have been struggling with an issue that's been a huge headache, and much teeth grinding.... Lol....

    Anyways,,,, I am trying to design my first WordPress Blog. I have intermediate CSS and CSS3 Skills, so this shouldn't be a problem right? Well not so the case, yikes !

    I had placed a Search Form within the Header of my Blog, looks great in Firefox, IE and Opera. But one problem, Chrome and Safari seems to reject my style of CSS....

    I placed a Border around and a -Webkit-Box-Shadow within the ( Forms Input Element ), but I cant see either when checking it out in both Chrome and Safari.

    Code:
    header input#s {	
    	-moz-box-shadow: inset 2px 2px 5px #202020 !important; /* Firefox */
    	-o-box-shadow: inset 2px 2px 5px #202020 !important; /* Opera */
    	-webkit-box-shadow: inset 2px 2px 5px #202020 !important; /* Safari, Chrome */
    	box-shadow: inset 2px 2px 5px #202020 !important; /* CSS3 */						
    	font-size: 1.4em;
    	height: 28px;
    	padding: 0 5px 0;	
    	width: 240px;
    }
    Code:
    <form action="<?php bloginfo('siteurl'); ?>" id="searchform" method="get" role="search">
        <div>  
        	<label for="s" class="screen-reader-text">Search for:</label>    
            <input type="search" id="s" name="s" value="" />
                 
            <input type="submit" value="Search" id="searchsubmit" />
        </div>
    </form>
    Please, can anyone save me....
    It's working fine for chrome and safari for me. The main issue I can see here is that the CSS isn't actually corresponding to the HTML. The first thing I did, was rename the CSS id to #headerinputs and set the div an id of headerinputs as well, and this made it work fine for me. So for example:


    Code:
    #headerinputs {	
    	-moz-box-shadow: inset 2px 2px 5px #202020 !important; /* Firefox */
    	-o-box-shadow: inset 2px 2px 5px #202020 !important; /* Opera */
    	-webkit-box-shadow: inset 2px 2px 5px #202020 !important; /* Safari, Chrome */
    	box-shadow: inset 2px 2px 5px #202020 !important; /* CSS3 */						
    	font-size: 1.4em;
    	height: 28px;
    	padding: 0 5px 0;	
    	width: 240px;
    }
    And
    Code:
    <form action="<?php bloginfo('siteurl'); ?>" id="searchform" method="get" role="search">
        <div id="headerinputs">
        	<label for="s" class="screen-reader-text">Search for:</label>    
            <input type="search" id="s" name="s" value="" />
                 
            <input type="submit" value="Search" id="searchsubmit" />
        </div>
    </form>
    The only other problem I could think it could be, is browser compatability, as box shadow isn't available in earlier versions of some browsers.
    Bernie
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  3. #3
    Join Date
    Apr 2012
    Location
    Chester, Cheshire
    Posts
    329
    Thanks
    7
    Thanked 35 Times in 35 Posts

    Default

    Does Firefox (Stable) still not support raw CSS3? The only browsers I have atm are Firefox 14 Beta and Firefox 15 Aurora and the raw CSS3 box-shadow: value works fine without the -moz- prefix.

  4. #4
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by ApacheTech View Post
    Does Firefox (Stable) still not support raw CSS3? The only browsers I have atm are Firefox 14 Beta and Firefox 15 Aurora and the raw CSS3 box-shadow: value works fine without the -moz- prefix.
    From the article I'm looking at now, it says it isn't supported by anything ie8 and below (obviously), Firefox 3 and below or below safari 5.1.1
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  5. #5
    Join Date
    Apr 2012
    Location
    Chester, Cheshire
    Posts
    329
    Thanks
    7
    Thanked 35 Times in 35 Posts

    Default

    If the Beta version of Firefox being released in three weeks is version 14.0, what's the current version?

  6. #6
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by ApacheTech View Post
    If the Beta version of Firefox being released in three weeks is version 14.0, what's the current version?
    Latest stable release is 13.0.1
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

Bookmarks

Posting Permissions

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