Quantcast Replacing a header with an image via CSS only, not HTML code - digitalFAQ Forum
Go Back    Forum > Digital Publishing / Web Sites > Website and Server Troubleshooting

Reply
 
LinkBack Thread Tools
  #1  
11-10-2011, 05:57 PM
Sossity Sossity is offline
Premium Member
 
Join Date: Nov 2007
Posts: 434
Thanked 5 Times in 5 Posts
In my Web coding class, we are working on the zen garden project where we use the html from the site, do not alter it, & make it our own using css, meaning we have to do all our customizations through the css only.

I wanted to have an image at the top of my page where the header 1 is, but I cannot use the "image source" type code in the html part, I have to get the image to show up only through code in the css. I did alter the html code to get my image to show up, it was the only way I could, but this is directly against the project guidelines.

I am having trouble getting this to work, I tried writing some code in my project css for the image, but it does not work.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-10-2011, 09:48 PM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,242
Thanked 354 Times in 332 Posts
I think you'll have to add a background call to a CSS element, or completely rethink how the CSS is done, as opposed to use the current ZenGarden CSS file as a template. Probably a body background.

Sometimes exercises like these are stupid, because the HTML is a limiter. Anybody that thinks "everything" can be done is CSS is a moron. Acknowledging this, it might mean you have to re-think your design to fit the limits of the HTML, as opposed to creating a design in your head, and then trying to force it into the limited HTML coding.

It would be easier to help if I saw a Photoshop mockup, combined with code attempted thus far. Start a new thread in the Premium Member forum, so that your instructor can't find out who you are, should he/she look online (unless he/she pays $20 to join). I'm not going to help you "cheat" or anything, but I don't see any harm in teaching you how to overcome one tiny hurdle on a project. You could spend 30 hours on this, and 10 on the rest -- but you may not have 40 hours to dedicate. Not a good use of your time. If nothing else, I can tell you if the design is feasible to do within the HTML limits. Maybe give a nudge on the right place to put some CSS.

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Copyright symbol in HTML, and other HTML characters Sossity Web Design + Site Planning 2 08-07-2012 10:42 PM
How to convert Word HTML tables to Dreamweaver code naimeiiz Website and Server Troubleshooting 1 10-02-2011 04:41 PM
Help replacing FS200 video head? zeroprobe Video Hardware Repair 9 04-02-2011 04:26 AM
Code edits to send HTML email via admincp in vBulletin admin Website and Server Troubleshooting 0 03-06-2011 08:14 PM
HTML login code like vBulletin for a website ? JonathanEntertainment Website and Server Troubleshooting 3 01-21-2010 07:11 PM

Thread Tools



 
All times are GMT -5. The time now is 08:01 PM