Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how to make my images fill 100% of the screen

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #166912
    bluedawg
    Participant

    My images are 1300 X 800 and I want to force them to fill 100% of the screen. Is it as simple as making sure my containers are at 100% then setting the image to 100%? that does not seam to be working for me.

    #166913
    bluedawg
    Participant

    Update – This is not CSS but I think my answer is here… does anyone know how to write 100% in Javascript:

    <script type=”text/javascript”>
    $(document).ready(
    function() {
    $(“.container”).wtRotator({
    width:1300, Need to change this line to width:100%
    height:800,

    #166916
    bluedawg
    Participant

    Found my answer… I used this:

                    width:window.screen.availWidth,
                    height:window.screen.availHeight,
    

    and now all is right as rain :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.