here is my code that is returned by functional component:
return (
<div className="card border-0 shadow " >
<div className="card-header">Update a Book</div>
<div className="card-body">
<form onSubmit={(e) => onUpdateContact(e)}>
<div className="form-group">
<TextField
id="outlined-helperText"
label="Enter The Name"
defaultValue={n}
onChange={(e) => setName(e.target.value)}
variant="outlined"
/>
</div>
<div className="form-group">
<TextField
id="outlined-helperText"
label="Enter The Isbn"
defaultValue={isb}
onChange={(e) => setIsbn(e.target.value)}
variant="outlined"
/>
</div>
<button className="btn btn-warning" type="submit">
Update Book
</button>
</form>
</div>
</div>
);
i want to give left right margin to it ....how to do it ? when i type margin as attribute in <div className="card border-0 shadow " >
,it gives error
error:
<div className="card border-0 shadow " margin=20px >