Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Beginnings …


chrishajer
Participant

@chrishajer

No, it doesn’t work like that. Well, sort of. You could include inline CSS in the php files and that would overwrite the stylesheet. But in this case, the field is defined as a size of 13, but it’s not via CSS. You should do one or the other.

If you had a definition in the CSS, like this:

#user_login {
width: 100px;
}
#password {
width: 100px;
}

That would make those two fields 100px wide, so long as you got rid of the size="13" in the login-form.php. Now, if you put some inline style in the login-form.php, like this:

<input name="user_login" type="text" id="user_login" style="width: 274px;" ...

The field would be 274px wide, not 100px wide. That’s just the Cascading nature of stylesheets.

Without messing with CSS at all, you could just change 13 in your template’s login-form.php to something wider to suit your needs.

Skip to toolbar