You need to Register for free and Login to post a message in the forum.

Forum

Background img not appearing in DNN
Last Post 2010-01-26 11:01 PM by chriso. 10 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
chrisoUser is Offline
Nuke Active Member
Nuke Active Member
Posts:30

--
2010-01-22 08:56 AM
    Hi guys,

    Running into a strange problem with a skin. 

    For a guest book, I've setup a class to display a large quote as a background image.  As a straight html/css file, I can get the image to appear as expected (see attached w/ image circled in blue), but as soon as I place this code in my DNN skin, I can't seem to do anything to get the image to appear.

    Within DNN, I can verify that the CSS works fine - I can change 'background' to a color, or even display a .jpg file that is in the same folder, and these changes show fine in my skin.  However for some reason, I just can't get it to display this .gif or any other .gif file.   I've also double checked that this file location is correct.

    Any ides on this one?

    Thanks,
    ~Chris




    CSS

    .quote{
        background: url(images/global/quotes2.gif) no-repeat;
        padding: 6px 0px 20px 0px;
        color: #6A6A6A;
        font-weight:600;
    }

    .who{
        color: #AA9F88;
    }





    1122561520971.JPG
    112201022454.JPG

    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-01-22 01:35 PM
    There could be something sitting on top of it that has a non-transparent background, so it's not visible.



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    chrisoUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:30

    --
    2010-01-25 02:30 AM
    Thanks for the reply, but I don't think that's the issue - unless there is something specific to DNN that is added to the skin that I'm not aware of. 

    I've posted the DNN version of the file as well as the straight html version.  The html/css is exactly the same, but you can only see the background image in the html version.

    Any other ideas?

    Thanks,
    ~Chris



    DNN version:  http://www.firstclasscroatia.com/en...ments.aspx

    HTML version:  http://www.firstclasscroatia.com/testArea/guestbook.html


    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-01-25 02:56 AM
    I don't see any differences between the two URLs.  Did you fix it?



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    chrisoUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:30

    --
    2010-01-25 04:14 AM
    The html and css are the same.  However, the html version displays the quotation mark background image fine, but the DNN one does not display it.   See attached images.

    1124142411671.JPG
    1124142415754.JPG

    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-01-25 04:38 AM
    Thanks, now that you pointed them out, I do see the quotes.

    Now ... where is the directory in which quote.gif is located?  Most likely, you are referring to it incorrectly in the css.  You have the reference as

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

    The actual image is at

                 http://www.firstclasscroatia.com/Portals/0/images/global/quote.gif

    You can see this by plugging this URL into your browser's address bar.  What you need to do is get DotNetNuke to look in the correct place.

    Try:

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

    I'm not where I can test this right now, but ... I hope that version works.   If not, it's close ...



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-01-25 04:46 AM
    This does work:  url(/Portals/0/images/global/quote.gif)



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    chrisoUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:30

    --
    2010-01-25 06:31 AM
    Hi Joe,

    Fantastic, that did it. I really appreciate your help, particularly so promptly.

    I understand why that link worked, but I think what confuses me is that in that same site/skin, I can successfully reference other graphics files that are in the same folder, using the path in the CSS examples below. 

    If that quote graphic is in the same folder, why would I have to use the longer version you sent me and - <!--[if gte mso 9]> Normal 0 unctuationKerning/> false false false oNotPromoteQF/> EN-US X-NONE X-NONE ontGrowAutofit/> ontVertAlignCellWithSp/> ontBreakConstrainedForcedTables/> ontVertAlignInTxbx/> MicrosoftInternetExplorer4 <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]> url(/Portals/0/images/global/quote.gif) - and not same one I used for the other graphics - <!--[if gte mso 9]> Normal 0 unctuationKerning/> false false false oNotPromoteQF/> EN-US X-NONE X-NONE ontGrowAutofit/> ontVertAlignCellWithSp/> ontBreakConstrainedForcedTables/> ontVertAlignInTxbx/> MicrosoftInternetExplorer4 <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]> url(images/global/quote.gif)?

    Thanks again,
    ~Chris


    #shadow {
        width: 840px;
        background: #b5b5b5;
        margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
        background-image: url(images/global/dropShadow.jpg);
        background-repeat:repeat-y;
    }

    #inforoll{
        background-image: url(images/global/Info_over.jpg);
        display:block;
        height:20px;
        width:85px;
    }


    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2010-01-25 02:48 PM
    Hello,

    It appears as though you have fixed this now, I noticed

    Joe commented on your CSS code:
    background-image: url(/images/global/quote.gif);

    I see you currently have it as:
    background-image: url(images/global/quote.gif);

    Perhaps the first time you added the image code you accidentally added a / before the images folder.


    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-01-25 03:05 PM
    Many of your other images seem to be in an images directory within the skin directory.  If you move your quote.gif file there, you can specify it the same way.



    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    chrisoUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:30

    --
    2010-01-26 11:01 PM
    Hey guys,

    Thanks, with your help, I think I finally understand what was going on.  

    I was confused with the file paths, as I was able to successfully display other images at url(images/global/image.gif), such as the titles, header images, etc., but I could not display the background quote image using the same file path, even though that image was located in the same directory.

    I realized that the big difference was that I was referencing the quote image from the CSS file, not the HTML of the page, so I needed to place that image file in the image directory within the skin folder, in order to use that file path.  

    The other option, as you pointed out Joe, was to leave the image where it was and reference it using url(Portals/0/images/global/image.gif)

    Thanks again for helping me through that.
    ~Chris






    You are not authorized to post a reply.


    Active Forums 4.3

    Latest Forum Posts

    RE: "Good" hosting providers by ejcullen rene
    informative!!!
    RE: URL Master Module doesn't work on IHostASP hosting by ejcullen rene
    informative!!!
    RE: shared web hosting by ejcullen rene
    informative!!. i got hosting service from http://www.thewebpole.com/ my hosting company offers you
    RE: iPhone website logo in DNN root directory by JohnnieD
    I'm supposed to add this link to make my custom logo show up on iPhones. Where in DNN would I a
    iPhone website logo in DNN root directory by JohnnieD
    I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
    RE: Fixed size container by Joseph Craig
    Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
    Fixed size container by Aggiedan97
    I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
    RE: DNN 6.1 app_offline.htm by Joseph Craig
    If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
    RE: DNN site automatically redirects to a different domain name. by Joseph Craig
    Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
    DNN 6.1 app_offline.htm by Dave Hassall
    Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
    RE: DNN site automatically redirects to a different domain name. by imran shaikh
    Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
    Enforce Terms Tutorial Update by Vistalogix Corporation
    I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
    RE: Best Practices for Modifying a Custom Module by Joseph Craig
    Start up the development website, then install the module using the package that you have. Then, yo
    Best Practices for Modifying a Custom Module by schilders
    Good Morning, I'm needing to modify a custom built module created by another developer targeted f
    RE: Admin menu problem by alireza arabiyan
    hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
    RE: Admin menu problem by Joseph Craig
    Yes, that is what you should have done. What is the URL for your home page? What is the URL for
    RE: Admin menu problem by alireza arabiyan
    hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
    RE: Admin menu problem by Joseph Craig
    How did you move it? Have you added an entry in the portalalias table for the site's domain name?
    RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
    Set up a user with dbo privileges and set the connection string for that user, rather than using Win
    Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
    I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds