so i need a bit of help. i want to display the output of this div/form inline.. i just don't know how to do it. i don't know if its even possible so please help xD
<div class="formholder" >
<form method="post" action="shop.php?action=add&id=<?php echo $row["id"];
?>">
<div class=product_cont>
<img src="<?php echo $row["image"]; ?>" class="img-responsive">
<h5 class="text-info"><?php echo $row ["p_name"]; ?></h5>
<h5 class="text-danger">$ <?php echo $row["price"]; ?></h5>
<input type="text" name="quantity" class="form-control" value="1">
<input type="hidden" name="hidden_name" value="<?php echo $row["p_name"]; ?
>">
<input type="hidden" name="hidden_price" value="<?php echo $row["price"];
>">
<input type="submit" name="add" style="margin-top:5px;" class="btn btn-
default" value="Add to bag">
</div>
</form>
</div>
this code outputs my products like a long list. so its kinda annoying and inconvenient. any help would be really appreciated. *edit if needed be i can post the whole code for this. tia
<style>
.text-info,.text-danger {
display:inline-block;
}
</style>
Hope it helped
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.