navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Adding a graphic via css

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Adding a graphic via css
Page: [1]
 
lilblackgirl

 

Posts: 288
Joined: 5/16/2002
From:
Status: offline

 
Adding a graphic via css - 5/18/2007 13:47:42   
I know how to add a background graphic, but i'm wondering if there's a way to add a single graphic via css. For instance, a custom HR to separate sections. Would i just create a div for the graphic and then define its height and width in the style sheet? And make certain it doesn't repeat.

thanks

_____________________________

You look like you're about to do something stupid. I'm in.
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Adding a graphic via css - 5/18/2007 14:43:44   
Probably the best way of doing it rather than adding in more divs or hrs would be to assign an image to the bottom of the div you're talking about - you might need to mess with bottom margins or padding to get it where you need but that will cut down on unecessary.

If you've already got a background image on that div then you'll have to add in extra markup - a HR with a div around it to properly assign a background image to the HR - here's more: http://www.sovavsiti.cz/css/hr.html

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to lilblackgirl)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Adding a graphic via css
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts