starlite Posted September 6, 2012 Share Posted September 6, 2012 Hi ive been told to come here, as people say you guys are the best Im using PHP NUKE 8.2 with the FI Black 3d Theme. im having a bit of an issue with the Logo at the top of the page. i did find some solutions which works on some browsers but anyone higher than 1024 resolution the banner is all over the place. on like 1240 and 1366 theres about 8cm that the logo doesnt cover this is with resolution 1366 http://img685.imageshack.us/img685/908/logohodk.jpg This is the code of the Header.html with the javascript someone told me to use to get it to resize - http://pastebin.ca/2201758 This is the theme.php - http://pastebin.ca/2201768 Can anyone advise how I can fix the issue, many thanks Quote Link to comment https://forums.phpfreaks.com/topic/268068-header-logo-issue/ Share on other sites More sharing options...
Mahngiel Posted September 6, 2012 Share Posted September 6, 2012 and i can tell you now that the issue lies here: if (swidth>=1024){ document.write("<img src=$mod_logo width=965 border=0>"); } } That says the maximum the image will be is 965px. You can use the css property background-size: cover, which will work on most modern browsers (IE >= 9) Quote Link to comment https://forums.phpfreaks.com/topic/268068-header-logo-issue/#findComment-1375775 Share on other sites More sharing options...
starlite Posted September 6, 2012 Author Share Posted September 6, 2012 ive never used css before, so i would not know how to do it. See the issue as well is, the theme logo is only meant to be on the left side and alot smaller as the right side has one of them pictures which auto sizes for the browser. So im trying to force the logo to cover the whole header. at first i was trying to do that via changing the image size. when i found that code above i tried that and it made the difference on smaller resolutions. So how could i tie in this css your saying into the current header? Im sorry for being crap at this, as im not the best at this coding Quote Link to comment https://forums.phpfreaks.com/topic/268068-header-logo-issue/#findComment-1375797 Share on other sites More sharing options...
Mahngiel Posted September 6, 2012 Share Posted September 6, 2012 if you lack the capability to look up CSS and its use, then you will need to post in the freelance section to hire somebody. PHP (and all languages for that matter) require an investment of time and energy reading manuals. Quote Link to comment https://forums.phpfreaks.com/topic/268068-header-logo-issue/#findComment-1375820 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.