Jump to content

Recommended Posts

Hi,

 

I have played around with this page and have narrowed down my problem to be a html one.

 

I have used a <p> element to clear the bottom of my divs.  This works fine if an even number of divs sit with each section of the page.  I believe this is down to the <p> element and more to the point, my post <h2> element, both having the feature of sitting under the element to the left and using the available space to the right for the elements content.

 

Is there a way around this, possibly to make it act as a block element?

 

Please look at this page and it's source to see how it is displayed, thanks.

Link to comment
https://forums.phpfreaks.com/topic/102305-block-element-diagnosis/
Share on other sites

mate - I've seen the html behind this a few times now - in all honesty from the first time you showed me - if at that point you had decided to start again with good semantic html - and got rid of all those awful conditional comments to insert html for ie6 - you'd have finished by now (that includes the learning process too!).

 

This is a pretty good example of those rare occasions when persisting with what has been produced (because it is thought fixing what you have will be quicker than a complete re-work) is detrimental to the over all project.

 

For everysecond this site remains 'off-line' is another second of lost income.  I suspect that even now you'd be better off starting again...

 

Sorry dude but there is too much to fix...

Yeah,

 

I have been doing allot of research today on css and best practices and note that allot can be changed for the better.

 

In fact I don't think it would be that difficult to change as the main layout is just a single template and the css is already separated over 4 sheets (general, content, topnav, leftnav).

 

I have learned that clearfix needs to be used under all floats, and what I really need to do is stick my template images in the background, use transparent pixels for links, and use a layout that doesn't use floats.  I found this one to be the most appropriate.  I'll try to incorporate that.

 

Do you have any good links for making my nav bars without using conditional comment blocks and if poss using pure css (no images).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.