Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By breno
  • 1 Post By Vapr_Arts

Thread: why background:(); does not work / what probably prevents my code to work ??

  1. #1
    Junior Member
    Join Date
    Feb 2015
    Posts
    7
    Member #
    45559

    why background:(); does not work / what probably prevents my code to work ??

    For aesthetic purpose I need a line to space content.
    I tried this:

    CSS

    .line1 {
    background:url(images/line1.png) 0 bottom repeat-x; padding-bottom:29px; margin-bottom:24px;

    }


    HTML

    <p class="line1"><p/>

    Previously I employed something like this and it worked perfectly , but not this time;
    Any suggestion on what on my main.css probably prevents the line to be rendered ?
    thank you very much

  2.  

  3. #2
    Senior Member breno's Avatar
    Join Date
    Feb 2015
    Location
    Australia
    Posts
    138
    Member #
    41574
    Liked
    29 times
    Why not use border: Solid 1px black; on one of the divs? You can even set the side of where the border will display with border-top, bottom-bottom, border-left or border-right.
    Ron Wolpa likes this.

  4. #3
    Senior Member Vapr_Arts's Avatar
    Join Date
    Oct 2013
    Location
    California
    Posts
    1,930
    Member #
    37412
    Liked
    544 times
    Try

    Background: url(/images/line1.png)

    Usually the first step i take with images not appearing is to double check the images location.


    Regretfully sent from my iPhone using Tapatalk during lunch and other breaks
    Ron Wolpa likes this.

  5. #4
    Junior Member
    Join Date
    Feb 2015
    Posts
    7
    Member #
    45559
    good idea , I will give it a try


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:56 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com