Jump to content

gamemann

New Members
  • Posts

    1
  • Joined

  • Last visited

gamemann's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello everybody, I have a problem with my site I am making. http://gmann.gflclan.com/index.php (this is a test site, I am not even near close to being done with it). The problem I am having is, when I make my browser smaller, the navbar body doesn't move down (expand). #navbar { width:auto; height: 5%; position:relative; background:url(images/transbg4.png); border-radius:15px 15px 0px 0px; box-shadow: 5px 5px 10px #121212; margin-left: 30%; margin-right: 30%; color: white; text-align: left; } There's the code. I think it has to do with "height: 5%;". Do you guys have any idea on how to fix this. I am learning coding, and sorry if this is a "noob" question. Also, if you want, feel free to give suggestions for the site, I already know it looks horrible but I plan on making it better in the future. Here is the navbar in the PHP file I made: <div id="navbar"> <ul id="nav_links"> <?php $query = "SELECT * FROM `navlist` ORDER BY `lorder` ASC"; $result = mysqli_query($db, $query) or die ('Error with the nav list query! Error: ' . mysqli_error($db)); while ($nav = mysqli_fetch_assoc($result)) { echo '<div class="navlink">'; $target = ''; if($nav['newpage'] == 1) { $target = 'target=_blank'; } else { $target = ''; } echo '<li class="nav_button"><a href="' . $nav['link'] . '" ' . $target . '>' . $nav['name'] . '</a></li>'; echo '</div>'; } ?> </ul> </div> Thanks, Gamemann
  2. Hello everybody, I am new here and I want to become a PHP coder in the future (along with a few other languages). I am not really new to coding, but I do want to become better and make a living off of it in the future. I am 16 and I own a big gaming community as well (why I want to learn coding so I can make things on my own). Hopefully I meet awesome people here Thanks, Gamemann
×
×
  • 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.