Forum Home
PC World Chat
 
Thread ID: 138385 2014-11-21 23:59:00 Navigation Buttons in HTML mzee (3324) PC World Chat
Post ID Timestamp Content User
1388629 2014-11-22 03:33:00 Yes! That's exactly it.

Can I put that code in-line?

I have been thinking about learning CSS but my interest is in the content

li {
margin-bottom: 20px;
}
You would do well to learn some CSS (and put it in its own file) it's so much easier and tidier and the website will be so much better for it.
Webdevguy (17166)
1388630 2014-11-22 03:39:00 I will give the second code a try - thanks

(When I said inline I actually meant at the top rather than a separate CSS page. CoffeeCup has stuff at the top)
you put the link to the CSS style sheet at the top of the page so that the browser reads the CSS and styles the page as it loads the page. Putting your CSS inline is very inefficient as it means that you end up having to edit every line of html that carries the CSS styling on every page rather than just making the changes to your CSS class or Id tag on a single CSS file which then affects all the classes on every HTML page on your multi page website.
Webdevguy (17166)
1388631 2014-11-22 03:49:00 ... it's so much easier and tidier and the website will be so much better for it.

I'm sure you are right but the fonts would still look crappy and it wouldn't look any good on different platforms and lots of other problems - there's too much to learn and I don't have the inclination at the age of 67

If my site ever became popular I would get a professional to re-hash it. Either that or I would invest in Dreamweaver (or Microsoft's one - I forget the name) and do some proper study

With CoffeeCup I make a new page, delete everything, copy a previous page to the new page, edit out the old stuff. So whatever's at the top gets transferred. Not very elegant but it works mostly
BBCmicro (15761)
1388632 2014-11-22 04:02:00 I'm sure you are right but the fonts would still look crappy and it wouldn't look any good on different platforms and lots of other problems - there's too much to learn and I don't have the inclination at the age of 67

If my site ever became popular I would get a professional to re-hash it. Either that or I would invest in Dreamweaver (or Microsoft's one - I forget the name) and do some proper study

If the fonts you are using look like **** then choose some decent ones. As long as you are building HTML5 sites you can use fonts from Google, Dafont or Font Squirrel. They have thousands of different fonts to choose from covering all sorts of styles and genres.

As for writing code, you don't need to waste money on Dreamweaver or any **** like Front page from Microsoft, just download a free text editor like Komodo, Sublime or Microsofts own Text++ (I can't remember what it's called) they are all perfectly fine for editing code. As to learning a bit of CSS to help make your websites more appealing for clients, you can go to Codecademy or Codeschool which are both free and where they walk you through the basics of HTML/ HTML5 and CSS. It's well worth it :)
Webdevguy (17166)
1388633 2014-11-22 07:38:00 I quite often use 'buttons' in HTML forms. Always in the past the buttons have looked realistic, in that they appear to move when clicked on.
When used in WebX5 they still work, but have a lifeless flat appearance. WebX5 supports HTML5.
Any ideas why this happens?

<CENTER><form method="get" style="margin-bottom:0;" style="margin-top:0;"><input type="button" style="width:40em;" value="Back" onclick="history.go(-1)" /></form></CENTER>
Just had another look at your code. It's written very inefficiently, the form method should be "post" rather than "get". Post is the more efficient and secure method of sumitting form data.

It also looks like the form is using jQuery to animate when the submit button is clicked. I'm guessing you haven't linked a Jquery library.
Webdevguy (17166)
1388634 2014-11-22 08:08:00 It's written very inefficiently, the form method should be "post" rather than "get".

Depends on what the form data is - for a search, or otherwise simply retrieving data, I'd use GET.


It also looks like the form is using jQuery to animate when the submit button is clicked. I'm guessing you haven't linked a Jquery library.

No it isn't...?
pcuser42 (130)
1388635 2014-11-23 06:45:00 Depends on what the form data is - for a search, or otherwise simply retrieving data, I'd use GET.




If its a regular form it will be for submitting data rather than retriving it so Post would be better.
Webdevguy (17166)
1 2