I asked this question a few days ago but despite much head-scratching I haven't been able to resolve it yet. I hope it is OK to ask it again.
I want to make links back to the top of the browser window from various points on the page, but I've been unable to do this because unless I put the anchor tag right inside <body> clicking on the link won't take me right back to the top of the page in Safari, although it will in the other...
User Profile
Collapse
-
returning to the top of the window in XHTML
-
I inherited the style sheets along with the rest of the site, and I'm trying to tidy it up and make it work. Most of the comments are a reminder of what does (or is supposed to do) what. Some things may have been commented right out because I didn't write them but I'm not sure whether at some point they will turn out to be necessary. There are also dotted borders that are commented out; I unhide them if I need to see how two or more divs relate... -
Thank you, Aric. I would like the text beginning 'Semi-precious stones and crystals...' to go just below the image of the smudge sticks in the second paragraph. It's currently starting level with just below the sidebar, and it needs to move up to fill in the space.
(Obviously the text is out of date but I need to know for when I put in the new text.)
Helen...Leave a comment:
-
clear: left clearing a separate div as well
I have taken over a site which I am trying to tidy up and update whilst learning the arcanities of CSS (particularly in relation to IE).
Below the header banner image and horizontal menu is the main section, which consists of a sidebar with mostly internal links and a content section with images and descriptions of items that are for sale.
The difficulty I am having is persuading a new paragraph to begin below a left-floated... -
Thank you. I'll refresh my rusty memory concerning javascript and see if I can do it. The only concern I have, though, is that people who don't have javascript enabled won't be able to access their shopping cart – or buy anything. Is that the case? If so, is there a <noscript> workaround that I could use, or would that upset the XHTML validator?
Should I be taking this query to the javascript forum or is it OK to discuss...Leave a comment:
-
Well, I put all the <input> content between <p></p> and now it looks better than it did before, so that is a bonus!
Thank you!...Leave a comment:
-
Ah, thank you. I will try that, although at present the form is a list item in a side menu, but I will have another think and see whether I can work around that.
I will try the Javascript forum.
Thanks again.
Helen...Leave a comment:
-
Can you suggest how I can get the page to validate in XHTML strict? I don't know how to do a form without the <input> tags, and I don't know how I can send it to PayPal without a target attribute.
Thank you.
The validator said:
<form target="paypal" ... /> there is no attribute "target"
<input type="hidden" name="cmd" value="_cart"...Leave a comment:
-
I don't understand what you mean by "that should work", because it doesn't work in Safari unless I put the anchor just inside <body>, and that won't validate.
If I put the anchor tag inside a <div> or <p></p>, following the link doesn't take me right back to the top but a bit below it.
Is there some other way of doing this?
Thank you.
HelenLeave a comment:
-
jump to top of page
I am trying to get a link back to the top of the page I'm on.
For the anchor, I've gotCode:<a name="topofpage" id="topofpage"></a>
Code:<p><a href="#topofpage">back to the top</a></p>
-
I looked at the original PayPal html code for pasting into the page and it doesn't have the ' />' at the end – I don't know what that bracket is called – so it looks as if the designer of the site simply changed the '<>...</>' to '<... />'. Here is the code for the 'view cart' button:
<li>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">...Leave a comment:
-
PayPal form failing XHTML validation
I just tried validating the page I'm working on as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
and it fails on the PayPal form:
<form target="paypal" ... /> there is no attribute "target"
<input type="hidden" name="cmd" value="_cart"... -
Thank you for the clarification. Well, I think I've managed to merge index.css and layout.css with, so far, no dire outcome. Now I have to see what happens when I put in the updated content...Leave a comment:
-
Thank you very much. Now to see what goodies that throws up...
Helen...Leave a comment:
-
confused about syntax
I am confused about the syntax used in the style sheet that accompanies the website I've inherited and have been asked to tidy up. XHTML is new to me, and I've only used CSS for font and link styles in the past.
The style sheet includes such things as div#header. Is this correct? I thought it should be either div header or #header. I can't find any reference to this online.
Also, the html references two style sheets... -
DTD: XHTML and CSS
I've just taken over a website that somebody else built and I'm trying to tidy it up and sort out a few problems. I've not built a site for a while – and certainly nothing as complicated as this one – and things have moved on a bit, so I am trying to absorb CSS for layout, whereas in the past I used tables.
My first question concerns the DOCTYPE. Reading drhowarddrfine' s post about this, I see that the site I've inherited uses...
No activity results to display
Show More
Leave a comment: