haralddae1971 Posted April 2, 2019 Share Posted April 2, 2019 Hi, i used the CSS listing from the Howto for custom Radio buttons. then i placed 4 radio button with text in a row. Unfortunately the browser puts a space of about 50 pixels between the elements. My screen part has only a width of 200 pixels (given by a CSS framework), so the browser uses 2 lines and destroys my layout. How can i adjust the distance between the elements? Thanks for your help Harald Daebritz Link to comment Share on other sites More sharing options...
dsonesuk Posted April 2, 2019 Share Posted April 2, 2019 After carefully going through the code you supplied I can honestly say I can see nothing wrong. Link to comment Share on other sites More sharing options...
haralddae1971 Posted April 3, 2019 Author Share Posted April 3, 2019 Hi, its good to know that the code is ok, but how can i take adjust the distance between the elements? If you need more code, please let me know, i will post it as fast possible. Link to comment Share on other sites More sharing options...
Funce Posted April 3, 2019 Share Posted April 3, 2019 That humour was exceptionally dry, dsonesuk. 11 hours ago, haralddae1971 said: If you need more code, please let me know, i will post it as fast possible. The joke was that you haven't posted any code in the first place. An example of your code would be very helpful. Link to comment Share on other sites More sharing options...
haralddae1971 Posted April 4, 2019 Author Share Posted April 4, 2019 I'm sorry that i didn't post anything. Here's the full site now, i hope that is not too much… The "form.css" file i wrote on my own, the files"orange.css" and "style.css" are given by the css framework i used to build my site. form.css orange.css style.css Spieler.php Link to comment Share on other sites More sharing options...
Funce Posted April 4, 2019 Share Posted April 4, 2019 The thing you need to change is your label width, make it smaller, to get it all on one line. There are quite a few interesting things in your HTML however, I suggest you run it through the w3schools validator before proceeding. https://validator.w3.org/ Link to comment Share on other sites More sharing options...
haralddae1971 Posted April 6, 2019 Author Share Posted April 6, 2019 Funce, thanks a lot for your little help, width into the conainer section and now it works like i want it. You did write about interesting things in my HTML, What exactly do you mean? Link to comment Share on other sites More sharing options...
Funce Posted April 8, 2019 Share Posted April 8, 2019 The HTML validator just picked a few things up is all. Errors found while checking this document as XHTML 1.1! Result: 168 Errors, 11 warning(s) (Ideally you want this to be 0 errors) Just put your HTML in here, and check out the details. https://validator.w3.org/ 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