lucasbard Posted January 22, 2007 Share Posted January 22, 2007 if i create a button css : background:tranparent; border:1px #ffffff solid;but this is not ok....button looks like have 3px's bordersomebody teach me how can to do a 1px border buttonthank youLucas Huang Link to comment Share on other sites More sharing options...
vchris Posted January 22, 2007 Share Posted January 22, 2007 When I define a border property I do:border: 1px solid #ffffff;should work. Link to comment Share on other sites More sharing options...
lucasbard Posted January 22, 2007 Author Share Posted January 22, 2007 When I define a border property I do:border: 1px solid #ffffff;should work.sorry, but you maby wrongborder:1px #ffffff solid or border: 1px solid #ffffff;they are the samebut they both can't display real 1px borderwill become 3 or 4 px border Link to comment Share on other sites More sharing options...
vchris Posted January 22, 2007 Share Posted January 22, 2007 to what do you assign this border property? do you assign it to input or to a specific class or id? Link to comment Share on other sites More sharing options...
lucasbard Posted January 23, 2007 Author Share Posted January 23, 2007 to what do you assign this border property? do you assign it to input or to a specific class or id?i use class <input type="submit" name="Submit" value="into" class="indexbutton">and create a file "xxxx.css"keyin .indexbutton{ background:transparent; border:1px #FFFFFF solid;}like this Link to comment Share on other sites More sharing options...
vchris Posted January 23, 2007 Share Posted January 23, 2007 seems fine to me... Did you create a link from your html doc to your style sheet? (other styles applied on this page) Link to comment Share on other sites More sharing options...
lucasbard Posted January 24, 2007 Author Share Posted January 24, 2007 seems fine to me... Did you create a link from your html doc to your style sheet? (other styles applied on this page)I use like this<link href="layout.css" rel="stylesheet" type="text/css">put this into <head>this is use dreamweaver ,it can create automy websitehttp://220.135.11.203/lucasAnd/you can see password border is 1pxbut button looks like 2 or 3 px bordersomebody told me ,this is IE browser bug Link to comment Share on other sites More sharing options...
vchris Posted January 24, 2007 Share Posted January 24, 2007 I don't know why it's not working. For testing purposes, wanna try and set the style in the button itself (<input type="submit" style="border: 1px solid #ffffff;" />). Link to comment Share on other sites More sharing options...
pulpfiction Posted January 24, 2007 Share Posted January 24, 2007 Click inside the textbox and then the button will look like a 1px border.. guess the reason is, if you take a normal submit button, you can see it highlighted. so because of this highlight the 1px border looks like 3px and when you click in the textbox the button is not highlighted so its like you want it. Link to comment Share on other sites More sharing options...
lucasbard Posted January 25, 2007 Author Share Posted January 25, 2007 I don't know why it's not working. For testing purposes, wanna try and set the style in the button itself (<input type="submit" style="border: 1px solid #ffffff;" />).it will still not 1px only backbround transparent will not 1px if background color is something border will 1px , Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now