Hi guys I just finish the survey page, take a look and tell me what you think
https://codepen.io/andreibri/full/wvzLMNe
Iâll get you started with a few obvious issues:
- You do have
<label>
s on your page but they donât havefor
attributes and thus they arenât working properly. Exception is the check boxes, those are working properly because youâve embedded them in the<label>
. - As I Tab my way through your form I canât really see the keyboard focus indicator because you are relying on the browser default and on my browser the color is very similar to the blue background color you are using. I would recommend that you always customize the focus indicator so it stands out very easily on your page no matter what browser you are using.
- When I narrow my browser all the way in I am getting a horizontal scroll bar. That should not happen on a page this simple.
Your form looks good @andre98briceag. Some things to revisit;
- Codepen provides the boilerplate for you. It only expects the code youâd put within the
body
element in HTML. (No need to include thebody
tags). For anything you want to add to the<head>
element click on the âSettingsâ button, then HTML and add it into the âStuff for <head>â box.
(Codepen actually has a link that you click to add thatmeta
element.) - Run your HTML code through the W3C validator.
- There are HTML coding errors you should be aware of and address.
- Since copy/paste from codepen you can ignore the first warning and first two errors.
- Codepen provides validators for HTML, CSS and JS. Click on the chevron in the upper right of each section and then click on the respective âAnalyzeâ link.
- The one for CSS is good. Use it and address the issue(s).
- (The one for HTML misses things which is why I recommend W3C)
- Userâs should be able to click on the label to toggle a selection, not just the radio button / checkbox
- Change the cursor to a pointer when hovering over the submit button
- Do not use the
<br>
element to force line breaks or spacing. Thatâs what CSS is for. - Make your page responsive. Remember, the R in RWD stands for Responsive
- Thereâs a horizontal scrollbar on smaller screens
Maybe revisit this lesson to help with styling your page. Itâs not only for radio buttons.
So i take off the blue horizontal scrollbar but in the mobile screen i canât put the h1 id=âtitleâ and the p on the top of the page in the middle of the the screen some suggestion ?
Where can I see how to change the view only on the mobil screen and different in the desktop screen? to get more confidence into it?
Start with the narrow view (mobile) design first and then work your way wider, adding breakpoints where needed for the wider design.
Just narrow your browser. Drag the right edge as far to the left as you can and start your styling from there.
This may help too. Do not use fixed dimensions on elements, use max-width/height and relative units like %, em, rem and vw to keep everything responsive.
This may help too. Temporarily add the following to the top of the CSS editor to help you see how youâve got your elements set up.
* {
border: solid 1px black;
}
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.