Jump to content

COBOLdinosaur

Members
  • Posts

    175
  • Joined

  • Last visited

Posts posted by COBOLdinosaur

  1. I am not sure the problem is directly related to the php. The validator throws 14 errors including invalid tag endings and duplicate ids. So you probably want to spend the effort getting the markup right. That may or may not solve the problem, but as long as you have those errors the page is not stable, and with such a weak doctype as xhtml transitional, it is not going to be very reliable.

    • Like 1
  2. Structurally the form is already inside the div. I don't see code for the click event that is supposed to fire it, but unless there is some kind of class change, the div is going to return to its original state and assume the same commputed values it atarted with as soon as the event ends. If you want two stages, you will probably need two events; but the actual problem is not apparent because that code looks to be incomplete as there is nothing firing the event.

  3. If you are using a free host then they are probably framing the site ti insert ads. instead of using the url to validate. Copy your code and then use the direct input option of the validator a paste your code in the textatra.

  4. If the div is floated, position absolute, or position:fixed, then it would be outside of the normal flow and it parent (in this case the body) would not respond as if the div is contained within it.

     

    However the most like cause is the markup itself. The validator reports 222 errors and a number of them are serious structural defects:

     

    http://validator.w3.org/check?uri=http%3A%2F%2Fyaragalla.blogspot.in%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

     

    I suggest you try fixing the structural errors, so that you at least have a valid stable platform to work on.

  5. You need clear:both for the table. The float on the nav bar continues to apply untile you explicitly end it by using clear both on a following element.

     

    It pushes way out to the right because you do not have a width or max-width specified for the body.

  6. Going to HTML5 will still give backward compatibility for the most part, but when you validate, you will get errors and/orwarnings about depeciated, obsolete, or modified tags/attributes. Those can be corrected over time and converting the local obsolete attributes to CSS replacements will generally be transparent. You should get rid of the obsolete/depreciated attributes not just to make maintenance easier, but also for efficiancy. When a modrtn browser encounters an obsolete attribute, it has to execute extra code to convert it to CSS, as the older attributes are no longer understood by the rendering engines or the renderObjects that need to fire for paint operations.

  7. Browsers have to parse the code and the code to do that is unique to each browser. They find the same errors as the validators. There is a myth that browsers ignore errors. The fact is that for every error they have to execute extra code during parsing to do serialization to the specifications. No doctype makes it even worse because that puts some browsers in quirks mode and they follow a different set of rules for parsing and rendering, even without quirks mode there is no guarantee that all browsers are going to use the same default doctype. The bottom line is that when there are errors the page will fail at some point in one or more browsers because the parsing engine quessed wrong and the rendering engine cannot resolve what it finds during the layout and initial paint steps; so it just puts out what it can.

     

    In extreme, but rare cases the build up of errors is such that parsing results in code that that will generate an uncausght exception when it is referenced by the renderObject of the affected element. That will crash or hang the browser.

     

    Not validating, or ignoring validation errors is a certain path to failure at some point, and the longer it is ignored the more work it is to fix; plus trying to use diagnostic tools on a page that badly malformed is not going to yield and helpful information.

  8. That sort of looks like a question, but there is so little information it it that I do not know what you want. You might find if you give some detail and explain what you need, that people try to help. But do not assume we know anything about your problem, the context it is in, and the technologies you are using, because we can only go by what you tell us. In other words we cannot see into your mind to determine what you are thinking

  9. Let me see if I understand this. You wrote smoe code that didn't work the way you wanted it to so instead of fixing it and finding what was causing the problem you decided to try hacking away with an invalid structure that also does not work so now you are looking for a way to get the hack to work instead of looking for a solution for the valid code that does not work.

     

    This is a strange planet. :crazy:

  10. The first step in trying to get third party code to work is to open a problem ticket with the vendor. If the vendor is not providing the support, then you have a theme that should be discarded. If a vendor is not willing to support their product, then you need to look elsewhere for third party code.

     

    Without a link to the site, there is no way of knowing if the problem is solvable. Most of the time with these things there is load time scripting to set styles that is almost impossible to get around. It is poor design to modify styles that way, but most of the themes do not anticipate that a developer might want to do something outside the normal limits of their software.

  11. If you want to enhance or actually enhance the image you could create an alternate version of it with the enhancement and the then use the alternate version in a swap, but you would need to use javascript for that. You could also highlight bu increasing the dimensions and bringing it forward with a z-index value.

  12. The nav will not set margins to auto based on that code because you have not specified a width. The browser cannot calculate the values for the margins unles it has a width specified that it can use in the calculation. Plus the position absolute overrides everything to do with position and is just aboute the worst posible property to use on a page that you want to be responsive.

  13. Yeah the tutorials recommendd by ingolme are a start. However HTML is not a programming language. It is just a markup to define the structure of a page. If you are going to do web pages you won't be able to do much with just HTML except very static and plain pages. You will also want to learn CSS, and probably javascript. You will also need to understand somw server side language to do anything really useful.

×
×
  • Create New...