Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

DIV background-repeat background-image? For shadow effect

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jc - 19 Mar 2008 15:04 GMT
RE: DIV background-repeat background-image?

Sorry I know this is more an HTML question, but thought you guys might
know.

I'm trying to use style background repeat with DIV to get a shadow
effect by repeating an image. I've seen people do this with TABLE, but
I don't want to use table. Possible?

The below results in nothing showing up. what am I doing wrong? I've
tried placing text in the DIV as well.

<div style="height:5px;width:800px;background-repeat:repeat-x;
background-image:'App_Themes/xxxxImages/top_bg_shadow.gif'" >
</div>

Thanks for any help or information.
Aidy - 19 Mar 2008 15:13 GMT
background-image: url('App_Themes/xxxxImages/top_bg_shadow.gif');

> RE: DIV background-repeat background-image?
>
[quoted text clipped - 13 lines]
>
> Thanks for any help or information.
jc - 19 Mar 2008 15:58 GMT
THANK YOU!

Would you happen to know how can I do the same thing vertically on the
right of my header and content areas?

Say I have a DIV for my header (800px wide), a menu below that (800
wide), that shading image (800 wide), my content page area (800), and
to the right of all of those I want a shading about (10px) based on an
image.

Will I have to use TABLE or an absolute positioned DIV?

The way the original site is doing it is with Table Width:

<TD style="BACKGROUND-IMAGE: url(Images\shadow.gif); WIDTH: 2%;
BACKGROUND-REPEAT: repeat" valign="top" align="left" height="100%"
rowspan="3"></TD>

Thanks in advance.
Aidy - 19 Mar 2008 17:19 GMT
You can position DIVs side-by-side if you use the float attribute.  Google
"float css" and you'll find loads about it.

> THANK YOU!
>
[quoted text clipped - 15 lines]
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.