Jump to content

ben03

Members
  • Posts

    123
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ben03

  1. Hi there, I am hoping to achieve something like on the bbc website, where all images have a grey area of the correct dimensions so the page holds its structure before the images are loaded and doesn't 'pop' into shape. I would've thought this was fairly straightforward but when working responsively you can't simply set the width and height of the frame like you used to! How would I go about this? Thanks!
  2. Thanks for the help with this
  3. Ok no that didn't work. Maybe I will have to assign widths and then percentages on smaller browsers. I tried giving both 'display:inline-block' but it was having none of it. If anyone can think of a better solution, let me know. Thanks for the help though!
  4. Ah sweet thanks for this. I won't be able to use the witch values used here but perhaps only giving the right div a float will do the job... Will give it a go...
  5. Hi, Am sure this should be relatively straight forward, but have looked at it too long... I am trying to get 2 divs to sit next to each other within a parent container. The second div drops to the line below currently. I don't want to set a width on the parent container as the site is responsive. How would I achieve this correctly? Thanks in advance!
  6. Hi there, I'm dealing with some short pages and the footer needs to be able to extend to the base of the browser to look a bit tidier. I thought of using an :after with the same background: footer:after{position: absolute; bottom: -1000px; left: 0px; width: 100%; height: 1000px; content: ""; background:rgba(0,0,0,0.6); } This works for left and right of a div, but not below as page keeps scrolling to the 100px height! How can 'hide' the overflow of this after so it doesn;t keep trying to scroll its height? Hope that makes sense. Thanks
  7. ok I think I've found the issue. Thanks for your help niche
  8. Hi there, I have just downloaded the popular Foundation framework and was about to get stuck in but changing index.html to index.php seems to have stopped the page from displaying. It just displays the html as it is written in the browser. Any ideas why this is? Thanks
  9. That worked perfectly. Thanks for your help there!
  10. Hi all, New to php. have a question but didn't know how to write in in google to get answer so hopefully someone can make sense of it here! This is the code blow. The title is being bought in but basically want a line of text to be bought in if the entry is blank. Getting an error with the following: <p class="feed-title"><?php echo $item['TITLE']; ?></p> <?php if ($item['TITLE']; = "") { echo "More great offers and topics can be found on our Facebook page. Click below for more"; } ?> Hopefully someone can make sense of this. I am currently fumbling. Thanks
×
×
  • Create New...