html - Django not rendering CSS correctly -
I have a site that I am creating, part of a stable HTML, the second part is served by Django I should look and stay the same (which is not it?) I have used CSS for a static site. In the same CSS I have almost (nearly successfully) included in the dynamic site.
When I create a form, I get a very good two column list on the stable side
label input label input label input
But, when I do the same code on the dynamic side, it is not very good
label input label input label input
I CSS is using:
form.login label.fixedwidth {display: block; Width: 240 pixels; Swim left; }
\. Sorry, here's my form:
& lt; Form action = "" method = "post" class = "login" & gt; & Lt; Fieldset & gt; & Lt; Div & gt; & Lt; Label = "username" class = "fixedwidth" & gt; Username: & lt; / Label & gt; & Lt; Input type = "text" name = "user name" value = "" id = "user name" & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Label = "password" class = "fixedwidth" & gt; Password: & lt; / Label & gt; & Lt; Input type = "password" name = "password" value = "" id = "password" & gt; & Lt; / Div & gt; & Lt; Input type = "submit" value = "login" /> & Lt; / Fieldset & gt; & Lt; / Form & gt; So, I noticed that two of my 'input type' lines did not close the tag (not '/') but there is no difference [/ edit]
Try
clear: both; s and gt; The semantically better than s may be however the output will not make any difference.
Comments
Post a Comment