Carneno wrote:Hello,
I'm working on a plugin in nopCommerce 3.80 with source in Visual Studio 2015.
When I use this code in my cshtml file:
<div class="form-group">
<div class="col-md-3">
@Html.NopLabelFor(model => model.Username)
</div>
<div class="col-md-9">
@Html.NopEditorFor(model => model.Username)
@Html.ValidationMessageFor(model => model.Username)
<input type="submit" name="generatename" class="btn bg-green" value="Generate Name" />
</div>
</div>
I displays this way:
https://drive.google.com/file/d/0B3Jw7h2K4ZvkVTk2TkhtR3Z6N0E/view?usp=sharingHow do I make the input field smaller and put the "Generate Name" button to the right of the input box?
Thanks,
Tony
Hi-
This must be edited in your stylesheet.
If you use the DefaultClean theme, it is here:
/themes/DefaultClean/Content/css/styles.css
If you have a custom theme, look for the content/css/styles.css within it's theme folder.
Open it and press Ctrl+F
search for: input[type="text"]
within the GLOBAL STYLES section of the stylesheet.
If you don't see a width definition for the text input, define one.
If you do, edit it to be narrower, like:
width: 120px;
Also, search for this class:
btn bg-green (which may actually be defined in a different stylesheet, like maybe your 3rd party menu plugin)
You will edit it the same way, for example:
min-width: 85px;
float: right;