In my page, i have a Col which contains of an image container and below it i would like to add a banner. I want to add a hr or horizontal rule to separate the two as follows
As you can see the hr is added but when i scroll my image container, the hr doesn't stay. See image as follows:
How do i make the hr stay irrespective of the entire length and scroll. Any help?
HTML code:
<Col className="details">
<div className="image-container">
<center>
<div className='container p-1'>
<div className="image">
<img style={{ width: 200, height: 200 }} src="http://ecx.images-amazon.com/images/I/51PhUckHB3L.jpg"></img>
<div className="caption">Product Title<br></br>
<small className='ellipsis'>Electrolux EENB54EB Ultraenergica Classic Aspirapolvere</small>
<span className="tooltiptext">Electrolux EENB54EB Ultraenergica Classic Aspirapolvere</span>
</div>
</div>
</div>
<div className='container p-1'>
<div className="image">
<img style={{ width: 200, height: 200 }} src="http://ecx.images-amazon.com/images/I/518Se4188mL.jpg"></img>
<div className="caption">Left Product Title<br></br>
<small className='ellipsis'>Amore Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</small>
<span className="tooltiptext">Amore Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</span>
</div>
</div>
</div>
<div className='container p-1'>
<div className="image">
<img style={{ width: 200, height: 200 }} src="http://ecx.images-amazon.com/images/I/518Se4188mL.jpg"></img>
<div className="caption">Right Product Title<br></br>
<small className='ellipsis'>Amore Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</small>
<span className="tooltiptext">Third Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</span>
</div>
</div>
</div>
</center>
</div>
<hr/>
<div>
{/* <center> */}
{/* <img style={{ width: 350, height: 350 }} src='http://ecx.images-amazon.com/images/I/518Se4188mL.jpg'></img> */}
{/* </center> */}
</div>
</Col>
Just put your hr inside the div from which you want to inherit the width. Otherwise if your content scrolls horizontally in sections you could block it in the middle of 2 divs, but I don't think it's your case (see second snippet).
.long-div {
width: 250vw;
}
<div class="long-div">
long div 1
<hr/>
</div>
<div class="long-div">
long div 2
</div>
.long-div {
overflow-x: auto;
}
.long-div-content {
width: 250vw;
}
<div class="long-div">
<div class="long-div-content">
long div 1
</div>
</div>
<hr/>
<div class="long-div">
<div class="long-div-content">
long div 2
</div>
</div>
Related
This is the code
when I try to make a dinamic complemet, I cant use the instance 'this'(risk input) for to refere a input (Win input).
import React,{ useState } from "react";
function rowbet() {
const [risk, setRisk] = useState('0');
const [win, setWin] = useState('0');
return (
<div>
<div className='w-full h-0.5 bg-gray-200'></div>
<div className='p-1'>
<div className='flex flex-row w-full text-justify'>
<div className='w-5/6 '> <p className='font-sans'> Under 2.5, 3</p> </div>
<div className='font-sans text-right'> -150</div>
</div>
<div className='font-sans text-sm text-justify'><p>Total</p></div>
<div className='text-justify '>
<p className='font-sans text-sm text-blue-400 hover:text-red-600'>Eintracht Frankfurt vs Napoli</p>
<p className='font-sans text-xs text-gray-400'>2/21/23, 3:00 PM</p>
</div>
<div className='flex flex-row w-full pt-1 '>
<div className='w-6/12 h-10 mr-2 border-2 rounded-md focus:text-xs'>
<p className='ml-1 text-xs text-justify text-gray-300'>Risk:</p>
<input value={risk} onChange={()=>{setRisk(this.value)}} type="number" name="risk" id="risk" dir="rtl" className='w-full h-4 border-0 outline-none' />
</div>
<div className='w-6/12 h-10 border-2 rounded-md focus:text-xs'>
<p className='ml-1 text-xs text-justify text-gray-300'>Win:</p>
<input value={risk*1.5 } type="number" name="win" id="win" dir="rtl" className='w-full h-4 border-0 outline-none' />
</div>
</div>
</div>
</div>
)
}
export default rowbet
ERROR
I try to use something like
take the value of the input and use for update de value of the other input
For updating state within a React component (Next or plain ol' React) you should use the provided event object:
<input value={risk} onChange={(e) => setRisk(e.target.value)} />
More information about controlled inputs can be found here:
https://beta.reactjs.org/reference/react-dom/components/input#controlling-an-input-with-a-state-variable
In my page, i have a Col which contains of an image container and below it i would like to add a banner. I want to add a hr or horizontal rule to separate the two as follows
As you can see the hr is added but when i scroll my image container, the hr doesn't stay. See image as follows:
How do i make the hr stay irrespective of the entire length and scroll. Any help?
HTML code:
<Col className="details">
<div className="image-container">
<center>
<div className='container p-1'>
<div className="image">
<img style={{ width: 200, height: 200 }} src="http://ecx.images-amazon.com/images/I/51PhUckHB3L.jpg"></img>
<div className="caption">Product Title<br></br>
<small className='ellipsis'>Electrolux EENB54EB Ultraenergica Classic Aspirapolvere</small>
<span className="tooltiptext">Electrolux EENB54EB Ultraenergica Classic Aspirapolvere</span>
</div>
</div>
</div>
<div className='container p-1'>
<div className="image">
<img style={{ width: 200, height: 200 }} src="http://ecx.images-amazon.com/images/I/518Se4188mL.jpg"></img>
<div className="caption">Left Product Title<br></br>
<small className='ellipsis'>Amore Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</small>
<span className="tooltiptext">Amore Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</span>
</div>
</div>
</div>
<div className='container p-1'>
<div className="image">
<img style={{ width: 200, height: 200 }} src="http://ecx.images-amazon.com/images/I/518Se4188mL.jpg"></img>
<div className="caption">Right Product Title<br></br>
<small className='ellipsis'>Amore Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</small>
<span className="tooltiptext">Third Legno Sforza segnalibro, segnalibro particolare, segnalibro legno, segnalibro laurea, idea regalo, segnalibri regali, regali originali per amiche, portafortuna da regalare, made in Italy</span>
</div>
</div>
</div>
</center>
</div>
<hr/>
<div>
{/* <center> */}
{/* <img style={{ width: 350, height: 350 }} src='http://ecx.images-amazon.com/images/I/518Se4188mL.jpg'></img> */}
{/* </center> */}
</div>
</Col>
Just put your hr inside the div from which you want to inherit the width. Otherwise if your content scrolls horizontally in sections you could block it in the middle of 2 divs, but I don't think it's your case (see second snippet).
.long-div {
width: 250vw;
}
<div class="long-div">
long div 1
<hr/>
</div>
<div class="long-div">
long div 2
</div>
.long-div {
overflow-x: auto;
}
.long-div-content {
width: 250vw;
}
<div class="long-div">
<div class="long-div-content">
long div 1
</div>
</div>
<hr/>
<div class="long-div">
<div class="long-div-content">
long div 2
</div>
</div>
I am trying to create a Basic Details form. In this i wan all the input field to appear in a tabular format. Is there any way to do that without using table tag
I have tried using css properties like display:flex and flexDirection but it is not working.
return (
<>
{/* Main Container Div */}
<div
style={{
display: "flex",
justifyContent: "space-evenly"
}}
>
{/* First Row Div starts */}
<div
style={{
display: "flex",
justifyContent: "center",
flexDirection: "column"
}}
>
<div>
<img
src="http://cetra.in/test2/profile_image.png"
alt="Profile"
style={{ width: "150px", height: "150px" }}
/>
</div>
<div>
<Button variant="contained" color="primary">
Upload Photo
</Button>
</div>
</div>
<div>
{/* First Row */}
<div style={styles.row_container}>
<div style={styles.row_items}>
<InputLabel shrink>Age</InputLabel>
<Select
margin="dense"
value={this.state.select_value}
onChange={e => {
this.handle_change(e.target.value);
}}
>
<MenuItem value="ms">Ms</MenuItem>
<MenuItem value="mrs">Mrs</MenuItem>
<MenuItem value="mr">Mr</MenuItem>
<MenuItem value="miss">Miss</MenuItem>
</Select>
</div>
<div style={styles.row_items}>
<TextField label="First Name" />
</div>
<div style={styles.row_items}>
<TextField label="Last Name" />
</div>
</div>
{/* First Row Ends */}
{/* Second Row */}
<div style={styles.row_container}>
<div style={styles.row_items}>
<FormLabel component="legend">Gender</FormLabel>
<RadioGroup
style={{
display: "flex",
flexDirection: "row"
}}
>
<FormControlLabel
control={<Radio />}
label="Male"
value="male"
/>
<FormControlLabel
control={<Radio />}
label="Female"
value="female"
/>
</RadioGroup>
</div>
<div style={styles.row_items}>
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<DatePicker
clearable
value={null}
variant="inline"
label="Date of Birth"
/>
</MuiPickersUtilsProvider>
</div>
</div>
{/* Second Row Ends */}
{/* Third Row */}
<div style={styles.row_container}>
<div style={styles.row_items}>
<TextField label="Passport" />
</div>
<div style={styles.row_items}>
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<DatePicker
clearable
value={null}
label="Passport Issue Date"
placeholder="Passport Issue Date"
/>
</MuiPickersUtilsProvider>
</div>
<div style={styles.row_items}>
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<DatePicker
clearable
value={null}
label="Passport Expiration Date"
placeholder="Passport Expiration Date"
/>
</MuiPickersUtilsProvider>
</div>
</div>
{/* Third Row Ends */}
</div>
</div>
</>
);
I want the first name to appear as if it were in the same column as the passport issue date and second row should that is with two elements should have it's element on corners of that row.
Here is my page content
<div class="entry-content">
<div class="gv-grid">
<div class="gv-grid-col-1-1 gv-left">
<form class="gv-widget-search gv-search-vertical" method="get" action="https://www.mypage.com/test/">
<div class="gv-search-box">
<div class="gv-search">
<label for="gv_search_11">Tìm kiếm</label>
<p><input name="gv_search" id="gv_search_11" value="" type="text"></p>
</div>
</div> <div class="gv-search-box gv-search-box-submit">
<input name="mode" value="all" type="hidden">
<input class="button gv-search-button" id="gv_search_button_11" value="Search" type="submit">
</div>
</form>
</div>
<div class="gv-grid-col-1-2 gv-left">
</div>
<div class="gv-grid-col-1-2 gv-right">
</div>
</div>
<div class="gv-table-container gv-container">
<table class="gv-table-view">
<thead>
<tr>
<th id="gv-field-1-2" class="gv-field-1-2" style=""><span class="gv-field-label"> Cần mua hộ</span></th>
<th id="gv-field-1-6" class="gv-field-1-6" style=""><span class="gv-field-label"> Tiền công</span></th>
<th id="gv-field-1-15" class="gv-field-1-15" style=""><span class="gv-field-label"> Nơi mua</span></th>
<th id="gv-field-1-5" class="gv-field-1-5" style=""><span class="gv-field-label"> Nơi giao</span></th>
<th id="gv-field-1-4" class="gv-field-1-4" style=""><span class="gv-field-label"> Giao đồ trước</span></th>
<th id="gv-field-1-entry_link" class="gv-field-1-entry_link" style=""><span class="gv-field-label">Link</span></th>
</tr>
</thead>
<tbody>
<tr class="alt">
<td id="gv-field-1-2" class="gv-field-1-2">CEZANNE Lasting Lip Color N 402</td>
<td id="gv-field-1-6" class="gv-field-1-6">80 000</td>
<td id="gv-field-1-15" class="gv-field-1-15">Nhật Bản</td>
<td id="gv-field-1-5" class="gv-field-1-5">Hà Nội</td>
<td id="gv-field-1-4" class="gv-field-1-4">14/04/2016</td>
<td id="gv-field-1-entry_link" class="gv-field-1-entry_link">Chi tiết</td>
</tr>
</tbody>
<tfoot>
<tr>
<th id="gv-field-1-2" class="gv-field-1-2"><span class="gv-field-label"> Cần mua hộ</span></th>
<th id="gv-field-1-6" class="gv-field-1-6"><span class="gv-field-label"> Tiền công</span></th>
<th id="gv-field-1-15" class="gv-field-1-15"><span class="gv-field-label"> Nơi mua</span></th>
<th id="gv-field-1-5" class="gv-field-1-5"><span class="gv-field-label"> Nơi giao</span></th>
<th id="gv-field-1-4" class="gv-field-1-4"><span class="gv-field-label"> Giao đồ trước</span></th>
<th id="gv-field-1-entry_link" class="gv-field-1-entry_link"><span class="gv-field-label">Link</span></th>
</tr>
</tfoot>
</table>
</div><!-- end .gv-table-container -->
<div class="gv-grid">
<div class="gv-grid-col-1-1 gv-left">
</div>
<div class="gv-grid-col-1-2 gv-left">
</div>
<div class="gv-grid-col-1-2 gv-right">
</div>
</div>
<input class="gravityview-view-id" value="11" type="hidden">
<div class="gv-grid">
<div class="gv-grid-col-1-1 gv-left">
<form class="gv-widget-search gv-search-vertical" method="get" action="https://www.mypage.com/test/">
<div class="gv-search-box">
<div class="gv-search">
<label for="gv_search_7770">Tìm kiếm</label>
<p><input name="gv_search" id="gv_search_7770" value="" type="text"></p>
</div>
</div> <div class="gv-search-box gv-search-box-submit">
<input name="mode" value="all" type="hidden">
<input class="button gv-search-button" id="gv_search_button_7770" value="Search" type="submit">
</div>
</form>
</div>
<div class="gv-grid-col-1-2 gv-left">
</div>
<div class="gv-grid-col-1-2 gv-right">
</div>
</div>
<div class="gv-list-container gv-container">
<div id="gv_list_30" class="gv-list-view">
<div class="gv-list-view-title">
<h3 id="gv-field-1-custom" class="gv-field-1-custom"><b>Ga Cong Nghiep</b> cần mua <b>Giày zara kid size 37</b> bán tại <b>Tây Ban Nha</b></h3>
</div>
<div class="gv-grid gv-list-view-content">
<div class="gv-grid-col-1-3 gv-list-view-content-image"><div id="gv-field-1-14" class="gv-image gv-field-1-14"><a rel="gv-field-1-14-30" class="thickbox" target="_blank" href="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/1050103050_2_3_1.jpg"><img scale="0" src="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/1050103050_2_3_1.jpg" alt="Ảnh" class="gv-image gv-field-id-14" width="250"></a></div></div><div class="gv-grid-col-2-3 gv-list-view-content-description">
<div id="gv-field-1-custom" class="gv-field-1-custom">
<h4><span class="gv-field-label"></span></h4><p>
Nơi giao hàng: Lạng Sơn<br>
Tiền hàng: 25.95 EUR<br>
Tiền công : 150,000 VND<br>
(Có thể mặc cả tiền công)
</p>
<p>
<button>Chi tiết</button>
</p>
</div>
</div>
</div>
</div>
<div id="gv_list_23" class="gv-list-view">
<div class="gv-list-view-title">
<h3 id="gv-field-1-custom" class="gv-field-1-custom"><b>Nguyễn Yên</b> cần mua <b>3 hộp kem đánh răng</b> bán tại <b>Nhật Bản</b></h3>
</div>
<div class="gv-grid gv-list-view-content">
<div class="gv-grid-col-1-3 gv-list-view-content-image"><div id="gv-field-1-14" class="gv-image gv-field-1-14"><a rel="gv-field-1-14-23" class="thickbox" target="_blank" href="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/kem-danh-rang.jpg"><img scale="0" src="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/kem-danh-rang.jpg" alt="Ảnh" class="gv-image gv-field-id-14" width="250"></a></div></div><div class="gv-grid-col-2-3 gv-list-view-content-description">
<div id="gv-field-1-custom" class="gv-field-1-custom">
<h4><span class="gv-field-label"></span></h4><p>
Nơi giao hàng: Hà Nội<br>
Tiền hàng: 513 JPY<br>
Tiền công : 85,000 VND<br>
(Có thể mặc cả tiền công)
</p>
<p>
<button>Chi tiết</button>
</p>
</div>
</div>
</div>
</div>
<div id="gv_list_25" class="gv-list-view">
<div class="gv-list-view-title">
<h3 id="gv-field-1-custom" class="gv-field-1-custom"><b>Trường Hải Minh</b> cần mua <b>Đồng hồ Casio WAVECEPTOR WVQ-M410DE-2A2JF</b> bán tại <b>Nhật Bản</b></h3>
</div>
<div class="gv-grid gv-list-view-content">
<div class="gv-grid-col-1-3 gv-list-view-content-image"><div id="gv-field-1-14" class="gv-image gv-field-1-14"><ul class="gv-field-file-uploads gv-field-1-14"><li><a rel="gv-field-1-14-25" class="thickbox" target="_blank" href="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/51Pj4cBrBpL.jpg"><img scale="0" src="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/51Pj4cBrBpL.jpg" alt="Ảnh" class="gv-image gv-field-id-14" width="250"></a></li><li><a rel="gv-field-1-14-25" class="thickbox" target="_blank" href="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/81xcVWtGDyL._UL1500.jpg"><img scale="0" src="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/81xcVWtGDyL._UL1500.jpg" alt="Ảnh" class="gv-image gv-field-id-14" width="250"></a></li></ul></div></div><div class="gv-grid-col-2-3 gv-list-view-content-description">
<div id="gv-field-1-custom" class="gv-field-1-custom">
<h4><span class="gv-field-label"></span></h4><p>
Nơi giao hàng: Hà Nội<br>
Tiền hàng: 15,370 JPY<br>
Tiền công : 200,000 VND<br>
(Có thể mặc cả tiền công)
</p>
<p>
<button>Chi tiết</button>
</p>
</div>
</div>
</div>
</div>
<div id="gv_list_21" class="gv-list-view">
<div class="gv-list-view-title">
<h3 id="gv-field-1-custom" class="gv-field-1-custom"><b>Nguyễn Hương</b> cần mua <b>CEZANNE Lasting Lip Color N 402</b> bán tại <b>Nhật Bản</b></h3>
</div>
<div class="gv-grid gv-list-view-content">
<div class="gv-grid-col-1-3 gv-list-view-content-image"><div id="gv-field-1-14" class="gv-image gv-field-1-14"><a rel="gv-field-1-14-21" class="thickbox" target="_blank" href="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/N402.jpg"><img scale="0" src="https://www.mypage.com/wp-content/uploads/gravity_forms/1-f9c2348184f1140e486c01fab8f03460/2016/03/N402.jpg" alt="Ảnh" class="gv-image gv-field-id-14" width="250"></a></div></div><div class="gv-grid-col-2-3 gv-list-view-content-description">
<div id="gv-field-1-custom" class="gv-field-1-custom">
<h4><span class="gv-field-label"></span></h4><p>
Nơi giao hàng: Hà Nội<br>
Tiền hàng: 518 JPY<br>
Tiền công : 80,000 VND<br>
(Có thể mặc cả tiền công)
</p>
<p>
<button>Chi tiết</button>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="gv-grid">
<div class="gv-grid-col-1-1 gv-left">
</div>
<div class="gv-grid-col-1-2 gv-left">
</div>
<div class="gv-grid-col-1-2 gv-right">
</div>
</div>
<input class="gravityview-view-id" value="7770" type="hidden">
I want to use css to hide the first two div of .entry-content.
How can I do it?
You can do following way using :first-child css:
.entry-content div:first-child, .entry-content div:first-child + div {
display:none;
}
<div class="entry-content">
<div class="gv-grid">1</div>
<div class="gv-table-container gv-container">2</div>
<div class="gv-grid">3</div>
<div class="gv-table-container gv-container">4</div>
</div>
Edit:
As per you html structure use css like following:
.entry-content > div:first-child, .entry-content > div:first-child + div {
display:none;
}
Try using the nth-child selector:
.entry-content div:nth-child(-n+2){
display:none;
}
<div class="entry-content">
<div class="gv-grid">1st</div>
<div class="gv-table-container gv-container">2nd</div>
<div class="gv-grid">3rd</div>
<div class="gv-table-container gv-container">4th</div>
</div>
<div class="entry-content">
<div class="gv-grid" style="display: none;">...</div> //HIDE THIS
<div class=gv-table-container gv-container" style="display: none;">...</div> //HIDE THIS
<div class="gv-grid">...</div>
<div class=gv-table-container gv-container">...</div>
</div>
style tag is embedded CSS.
Simple CSS2.1 version of this uses the sibling selector.
.gv-grid, .gv-table-container {
display: none;
}
.gv-grid ~ .gv-grid, .gv-table-container ~ .gv-table-container {
display: block;
}
The way the sibling selector works is that is will fire if an element has an earlier sibling that matches.
So the first rule applies to all .gv-grid and .gv-table-container elements within a shared parent; the subsequent rule will override it for later .gv-grid and .gv-table-container elements.
I'm having a problem using this so I'm sure I'm doing something wrong. I want to use this star rating system(http://www.fyneworks.com/jquery/star-rating/) and knockoutjs. So right now I'm displaying a bunch of business info using the foreach binding, but I want to add the star rating to each business. Without the star rating stuff all my business display just fine, but when I add the star rating stuff I can only get one business to display and none of the others will show up. Here is what I have, I know its a little crapastic right now but I'm new to this stuff.
<div style="float: right; width: 360px; height: 700px; overflow-y: scroll; overflow-x: hidden;" data-bind="foreach: Businesses">
<a href="#" data-bind="attr:{href: '/home/BusinessDetail?name='+ Name}" style="text-decoration: none;">
<div>
<h5 data-bind="text: Name" style="font-size: 14px;"></h5>
<div data-bind="if: Stars===5">
<div id="star1" class="star-rating rater-5 star star-rating-applied star-rating-readonly star-rating-on"></div>
<div id="star2" class="star-rating rater-5 star star-rating-applied star-rating-readonly star-rating-on"></div>
<div id="star3" class="star-rating rater-5 star star-rating-applied star-rating-readonly star-rating-on"></div>
<div id="star4" class="star-rating rater-5 star star-rating-applied star-rating-readonly star-rating-on"></div>
<div id="star5" class="star-rating rater-5 star star-rating-applied star-rating-readonly star-rating-on"></div>
</div>
<br /><h6 data-bind="text: FullAddress"></h6>
<br />
<hr style="margin-top: 1px; margin-bottom: 1px;" />
</div>
</a>
</div>
var viewModel = {
Businesses: ko.observable(),
BusinessCategories: ko.observable(),
SelectedCategoy: ko.observable(),
LatitudeText: ko.observable(33.4633733188117),
LongitudeText: ko.observable(-111.926908493042),
MilesText: ko.observable(10)
};
So I would need to add something to display the stars if Stars == 4...Stars == 3 etc. But What is happening here? Why does only one business display?