Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

How create image background with Divs

  • 25-08-2010 3:22pm
    #1
    Registered Users, Registered Users 2 Posts: 48


    Hi,
    Im relatively new to web design so I think this should be a straight forward question for someone out there who works in the field. Im looking to design a site where i have an image background with floating DIVs on top that contain text. An example of what im looking to achieve can be found here :
    "http://www.esb.ie/main/home/index.jsp"

    Would anyone know what this effect is called so i can investigate further on the net. At the minute i dont even know what to search for? Any info would be great.


Comments

  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    Download a tool called FireBug for FireFox. It allows you right click on page elements and see both the html and the css for the element.

    In this case the div is:
    <div id="homepage">
    <div id="banner-background">
    
    with the following in the css:
    #homepage #banner-background {
    background:url("../img/windmill-background.jpg") no-repeat scroll center center #0064A2;
    border-bottom:1px solid #666666;
    display:block;
    height:631px;
    padding:0;
    


    More info on css (and xhtml) is at http://www.w3schools.com/css/default.asp or of course, Google 'css background images'.


  • Registered Users, Registered Users 2 Posts: 48 petes2008


    wow, awesome little add-on there, a great help in viewing div details, thanks a lot.


  • Moderators, Category Moderators, Entertainment Moderators Posts: 36,711 CMod ✭✭✭✭pixelburp


    There should really be a sticky thread for add-ons & applications like Firebug (or Developer Tools if you're using IE); it makes debugging markup and stylesheets so easy, and yet many designers appear to have never heard of it.


Advertisement