CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 5/25/2007 7:51:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 8 Views: 67 Favorited: 0 Favorite
9 Items, 1 Pages 1 |< << Go >> >|
frcol
Asp.Net User
Master page <td background="images/img.gif" > dosen't work5/25/2007 7:51:11 PM

0

Does anybody knows a way to the img in the background of a <td> tag?

I've tried "~/images/img.gif" but didn't work.

 thanks


[]s
http://www.fabiocolombini.com
augustwind
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/25/2007 9:38:48 PM

0

 

Not being an ASP.Net table, that probably won't work - -

Have you tried "/images/img.gif" ?


David Wier
MVP/MCP/ASPInsider
ASPNet101.com - where to look first!
iWrite Pro - doc/rtft to HTML/One Click PDF & much more
frcol
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/26/2007 2:32:23 AM

0

It works if it is in the same folder. If I put the page (from Master.page) in another folder it doesn't work.


[]s
http://www.fabiocolombini.com
arsalan
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/26/2007 3:17:43 AM

0

I have done this before. And my code works fine I have an Image folder for my master page and I am using this following code to set the

image in the td tag.

<td colspan="2" style="height: 50px;"  background="image/bg.jpg" >

 

 
Muhammad Arsalan Ayub
User Group Leader DotNetOlympians

MyBlog
augustwind
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/26/2007 6:10:32 PM

0

What you could do - - and I know this is much more overhead -
is to convert your Table to an ASP.Net table, then, your first solution with the tilde (~) should work.
For that matter, any ASP.Net control, referring to an image would work in that way, with a Master Page scenario. I learned that when I was first experimenting with Master pages, trying to make an image show up, with an HTML image tag - changed it to an asp.net image control and it worked, no matter which folder the content pages were.


David Wier
MVP/MCP/ASPInsider
ASPNet101.com - where to look first!
iWrite Pro - doc/rtft to HTML/One Click PDF & much more
phantomlove
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/26/2007 8:03:35 PM

0

what about <body> tag??

i want to set the img as a background using css file containing the following:

body

{

margin: 0 auto;

padding: 0;

font: 76% Verdana,Tahoma,Arial,sans-serif;background: url(App_Themes/Blue/images/bg.gif);

}

 but it doesn't show the image !! i tried many ways

formationusa
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/27/2007 12:04:13 AM

0

 Hello phantomolve

 if the images folder is the same location as the CSS. then all you need is:

background-image: url(images/bg.gif);

if not, then you need:

background-image: url(AppThemes/Blue/images/bg.gif);

 this should work. the background-image property works for setting the background any html element supporting this feature, including a textbox.
 


 


Dinia Oussama
http://oudinia.blogspot.com
phantomlove
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/27/2007 4:58:36 AM

0

many thanks for u .. it works fine now
frcol
Asp.Net User
Re: Master page <td background="images/img.gif" > dosen't work5/30/2007 3:20:29 AM

0

The why I found to solve the problem was use .CSS for the <td> tags.
The master pages automaticaly changes the path for the .css that is linked.

.td_sup_esq
{
background-image: url("tlc.gif");
}
.td_sup_meio
{
background-image: url("tcb.gif");
}
.td_sup_dir
{
background-image: url("trc.gif");
}

======================================

<td class="td_sup_meio">

 

Now it's working great and it's easy to change all the theme.

thanks the answers.


[]s
http://www.fabiocolombini.com
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

.... In IE7 - it doesn't. On my own website, Mozilla shows all the ...
CSS Creator [Solved] Background-Image not working I got a huge problem here, the background-image attribute just doesn't work. ... I've tried background and didn't work too, but background-color worked fine. ... CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> ....
dosen't work - ASP ... Master page dosen't work ... the background of a tag? I've tried "~/images/img.gif" but didn't work. ...
pulled all my hair out - Object doesn't.... - CodingForums.com media/images/page/topban_midbg.gif">
Page renders right on Firefox or Chrome wrong on IE. The first ... I have a master page created in Visual Studio 2008 that renders ... The extra space is taken up with the default background of the web page. ... References to images in Master Pages : image, master, page, references Dec 6, 2007 ... That doesn't really help, what if I have a structure several layers deep. I have actually discovered the solution for the img tag, you need to use ... But will that work for background images for tables etc? ... background: url(../images/ logo.gif) no-repeat !important; } ...

horziontal menu control - items separator - ng.asp-net-forum ... master page
dosen't work · why can i set some properties of controls using skins, while the other i can`t ...
Sharepoint Designer error when rendering custom user control ... master page
dosen't work · treeview + style · does asp.net 2.0 expose stylesheets? wizards driving me crazy ...






nested master pages and accessing previouspage causes threadabortexception?

dynamic style changing using themes in asp 2.0

how do i programmatically edit a theme or skin file

javascript function inside a masterpage

can i have another form within one of the contentplaceholders ?

declaratively set properties on masterpage controls from content page

user control in a master page disappears when theme is used

menu selection not staying highlighted

master page does not show proper images in subfolder

contents div of hebrew master page - disapear when maximize window

problem with skinid property in gridview

master and content pages with css

master and slave menu controls

asp:menu showing alt tags as text in older browsers

css not applied after authentication

nested master pages left centre and right. all different aspx pages.

tree view postback

master page login control ontextchanged

mastepages + php page in the content

vs2005 menu control: display child items on mouse click

sitemap problem with urlrewriting

navigating from master pages and will display to the placeholder

add nodes to child nodes

holy grail - can main content center be made scrollable?

search node in a tree list!

menu control : cross page posting and posted values in nested controls?

masterpage skinning

passing value from aspx to ascx within master/contentplaceholderid - findcontrol

asp.net 2.0 menu control configuration

masterpage content not displayed after gridview sort

   
  Privacy | Contact Us
All Times Are GMT