Jump to content

nigsrasta

New Members
  • Posts

    6
  • Joined

  • Last visited

nigsrasta's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi CyberRobot You are the man! Thanks I didn't even think about trying it with normal text! Once again thank you!!!
  2. Hi CyberRobot, yes I am familiar with it & I did use it to try & see what was wrong but I couldn't see any thing. Here are the screen shots The larger pic is what happens when the post is posted on the page & the smaller one is when the screen is scaled down. The white box scales fine but the text will not follow suit. Thanks
  3. Hi Thanks for the reply but how do - 1- I add a screen? 2- Add you as friend? The problem I'm having is once the comment before it has been made sits in the comment box fine, but when its displayed on the webpage it spills outside the comment box. The comment box will scale down for a mobile but the text will not. Once I find out how to post a screen shot I think will understand better. Thanks.
  4. Thanks for the reply but after changing it, it stopped working. Thanks any way.
  5. Thanks for the reply, but i did foolow a tutorial & posted on the page that i was having this problem. I got no reply hence why I asked in here.
  6. Hi I've created my database & the code to collect my data & show it on my web page. However when I scale the page the comments on the page spill over & do not scale with the comment box I've created (I'm using the bootstrap frame & adding my php code) This the code php code i have - <?php function setComments($conn) { if (isset($_POST['commentSubmit'])) { $uid = $_POST['uid']; $date = $_POST['date']; $message = $_POST['message']; $sqli = "INSERT INTO comments (uid, date, message) VALUES ('$uid', '$date', '$message')"; $result = mysqli_query($conn, $sqli); } } function getComments($conn) { $sqli = "SELECT * FROM comments order by cid desc"; $result = mysqli_query ($conn, $sqli); while ($row = mysqli_fetch_assoc($result)) { echo"<div class='comment-box'><p>"; echo $row['uid']."<br>"; echo $row['date']."<br>"; echo nl2br($row['message']); echo "</p></div>"; } } and this is the css code - .comment-box { width: 100%; height:auto; padding:5px; margin-top:0px; margin-bottom: 5px; background-color: white; border-radius: 4px; } .comment-box p { font-family: 'cooper black'; font-size: 14px; line-height: 16px; color: green; font-weight: 100; } I've been on this for almost two days & cannot see why it will work. Any help would great. Thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.