Message 6 of 30

CSS and Java

Here is my website first page view link made with an online "beta" Javascript web design program.
Would you look at the "Source" and tell me how I can trim it out to a CSS "style sheet" that will allow me to put my own one panorama photo in the top dark "grey area" of every page in the entire website, eliminating the Javascript?
I already have a domain name and host, at view link
I want my website to "work" on "any browser" and be useable by "screen readers" for the handicapped, as well. I understand HTML and CSS, are acceptable.
However, "my" HTML is not very good.
photo of W7CJD
WOW! Gulp...in order to 'trim' the code in your page it would be easire to simply start from scratch. I hand code everything using Notepad. That means I make a txt file, in general, and name it .html and that's what it creates - an html file. In reading your code it seems what you used to create the page was similar to using Microsoft Word to create a page. If you don't know that method will create a lot of extra unnecessary code.
First, in CSS, you start with

Then you put some text in between the 'p' tags to represent a paragraph.


You close every tag with it's closing tag. There are only a handful of tags that do not have closing tags, but that's for another post.



and there you have a single block of text that includes 2 paragraphs.

When you want to change the colors, position size or anything to which you have assigned a 'class' tag, you edit that information in your myname.css file. Everything you want to control must use either a class tag (inside the CSS script the tag would be .myclasstag) or an id tag (inside the CSS, #myidtag). There are reasons for using either the class or id, but that too is for another post.

When I looked at your source I could see there is code 'other' than just the class or id tag. You don't need them. Everything you want that item/text/heading to do is controlled inside the CSS - everything.
There is something else you should know.
Just because a program/script or Web site creates something for you doesn't mean that person/entity knew the rules and proper procedures for coding. It's just 'what they know' that went into whatever they provided to you.

Feel free to strip out 'everything' in all of your tags and put in only class="whatever" tags inside the
tag.
I understand this is all pretty general. But I can't be more specific without actually recoding your page. I hope this helps.


photo of WebGuyTom

2 months ago
...sorry...In my haste I forgot that Eons won't allow the tags that I put in for demonstration purposes. So the blanks you see I'll be back later to 'fill in' for you.
photo of WebGuyTom

2 months ago