473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do I adjust html programming for wide screen monitors? - widescreen.JPG (0/1)

I have very basic html skills. My friend who has a wide screen
monitor and is using IE7 sent me a jpg screen shot of my home page.

I have attached this jpg, but I recall a while back that attachments
were discouraged. I am sorry if I have offended anyone by attaching.

Note the left side table tiles or repeats towards the right side of
the screen, but the text does not, so it cannot be seen under the
graphic.

Is there a little bit of programming I can change so that the left
table doesn't repeat?

Please visit www.glennresearch.com and view source to see how basic my
programming skills are.
Feb 8 '07 #1
6 8103
On 8 Feb, 21:57, Christopher Glenn <x...@y.zwrote:
I have very basic html skills.
So improve them. C'mon, you're a PhD - How hard can it be? 8-)

It's not a bad site. Could be better, but can't they all. Content
looks OK, and that's where the legwork is. The rest is just
presentation.

I suggest a complete make-over, rather than a quick fix. It's not that
hard, for a few days study you get a new skill and you get a site that
you can build on afterwards. Do it with CSS rather than tables. Good
reading to start with is the O'Reilly "Head First HTML with CSS &
XHTML" , maybe Lie & Bos' "Cascading Style Sheets" too as a reference
to keep around afterwards.

So read the book, get yourself a usable text editor (NOT a WYSIWYG
like Dreamweaver) and a copy of Firefox with the HTML Validator
extension. It'll take you a day to learn what you're doing, and an
hour to fix each page. Web search first for a few ready-built CSS
layouts (bluerobot or glish.com might be handy)

* Start by opening up your page, running the HTML Validator and Tidy's
"Cleanup" on it, then saving it in your new site directory.

* Strip out all the old HTML tags by replacing them with a <ptag.
Change everything inside the <bodyinto a <pexcept for a few: Leave
<i>, </i<band </balone. Leave <aand <imgalone. Replace all
the <font>, <li>, <center>, <brand get every last trace of the
<tablestuff for sure! Leave the <hrfor the minute.

* Lose the presentation attributes from the remaining tags. Everything
from <bodyAnything that says color, align or border. Keep width and
height on <img>

* Add a HTML 4.01 Strict doctype declaration to the top

* Link in your CSS stylesheet (which you downloaded from the "2
column" example site). Put the stylesheet in a separate directory off
root, something like "styles" or "assets"

* Move all the image assets that are common to the whole site (page
background images, graphics) into this directory too. Throw away all
the images that are just decorated text.

* Now take a look at it. You should have a perfectly valid and
rather ugly page. Use Tidy to check and clean it until it's perfect
(turn anything you don't understand into a <p>)

After each step now, check that it's still valid and keep it this way!

* Replace the lists of <alinks for the menu with a proper list as
<ul... <li<a ... ... </a</li... </ul>

* Do the same for the bottom menu. Lose the "|" separator characters

* Lose the <imgfrom the menu items and replace them with plain text.

* Lose the <imgfrom the section headings and replace them with plain
text inside <h2... </h2>

* Replace all repeated <p><pwith a single <p(even stripping
whitespace between them)

* Replace href="http://www.glennresearch.com/gradstud.html" with just
href="gradstud.html"

* Replace href="mailto:cg****@glennresearch.com" with
href="mailto:cglenn@glennresearch.com"
(this reduces some spam-scraping of addresses, although a proper
mailto form handler is better)

* You'll probably have a couple of <divelements to add, according to
how the 2 column stylesheet worked - maybe a big one called <div
class="content" or something wrapping up most of the page apart from
the menu. Add some class attributes. Also put meaningful class names
on the <ulmenu lists.

* Now start working on the semantics of your markup. If there's a
block that makes sense as a conceptual unit, mark it up as such. The
copyright statement in the footer is one, as are the nav menus. Use a
<div(if they haven't already got a suitable element like <ul>
wrapping them). Make sure that these also have suitable class
attributes to identitfy them.

* Adjust the CSS until it looks right. Do the two-column thing first,
based on your example stylesheet (this should be easy, just make sure
you've used the right class names etc.)

* Adjust the CSS for the menus. Make the top menu a vertical list,
with each link in its own bordered box. You don't need those block
images any more.

* Do the CSS for the bottom menu. Use display:inline; etc. to get it
into an inline list (search, you'll find plenty of examples)

* Use your newly learned L33T CSS sk1llz to present the copyright
footer how you want it.

* Style the background by changing the CSS applied to <body>. Now tone
it down a few notches, because it looks a bit 1997 stars-and-stripes
homepage and it really _doesn't_ look like a modern professional
services site.

Do all these CSS changes in the stylesheet, not the page. Keep
validating, and validate that CSS too!
Note the left side table tiles or repeats towards the right side of
the screen, but the text does not, so it cannot be seen under the
graphic.
* Oh, that stuff. Your two column example ought to cope with that, but
if not, then look into the CSS property for background-repeat. Try
this:

body {
background: white url("chris2_bg.jpg");
background-repeat: repeat-y;
background-position: center;
}

* Adjust the CSS for cosmetic effect.

* Read Joe Clark's site on web accessibility and pay attention to it.
You're almost there by now anyway.

* Come back and tell us how it's going.

Feb 8 '07 #2
Andy Dingley wrote:

[long, friendly, helpful advice snipped]
>
* Come back and tell us how it's going.
Whattsa matter Andy? Nothing on television tonight? ;-)

--
John
Feb 9 '07 #3
On 9 Feb, 01:19, John Hosking <J...@DELETE.Hosking.name.INVALID>
wrote:
Whattsa matter Andy? Nothing on television tonight? ;-)
I've never owned one of the things.

No, I'm trying to teach some HTML refactoring (and write a Python
refactor-bot). This just seemed like a handy guinea pig to demonstrate
on. I've got about 250 pages of very similar HTML to try and bring out
of the Drak Ages, so I'm trying to automate it.

Feb 9 '07 #4
On 8 Feb 2007 15:03:53 -0800, "Andy Dingley" <di*****@codesmiths.com>
wrote:
>On 8 Feb, 21:57, Christopher Glenn <x...@y.zwrote:
>I have very basic html skills.

So improve them. C'mon, you're a PhD - How hard can it be? 8-)
<SNIP>

Are you saying there is no quick fix within my extant skills that
could work? Is this because the problem is inherent with the use of
<tables syntax?

Thanks Andy for the 'guinea pig' tutorial. When I have a couple of
years (er, days), I'll try again. What I didn't say, because it was
not pertinent, is that I have tried twice to teach myself more
advanced html skills, but I seem to have some sort of block. I have
blocks in other related areas, and several learning disabilities still
impacting me from childhood, and I think they are related.
Feb 11 '07 #5
On 11 Feb, 18:14, Christopher Glenn <x...@y.zwrote:
Are you saying there is no quick fix within my extant skills that
could work?
Maybe. Your problem (as I understand it, not as how you described it)
is nothing to do with tables and is actually to do with the repeating
of the background image attached to the body element. If you do this
with HTML 3.2 and <body background="chris2_bg.jpg" ... then you
always get repetition in two axes. If you do it with CSS instead,
then you control it to just repeat on one axis.

<body style="background: white url('chris2_bg.jpg') repeat-y;" ...
>
An alternative even-quicker-fix would be to open the background image
in a bitmap editor and just change it to be about 5000pixels wide,
which will last for a year or two longer.

Feb 12 '07 #6
On 12 Feb 2007 03:13:44 -0800, "Andy Dingley" <di*****@codesmiths.com>
wrote:
>On 11 Feb, 18:14, Christopher Glenn <x...@y.zwrote:
>Are you saying there is no quick fix within my extant skills that
could work?
Thanks, Andy!
Feb 12 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

71
by: tomy_baseo | last post by:
I'm new to HTML and want to learn the basics by learning to code by hand (with the assistance of an HTML editor to eliminate repetitive tasks). Can anyone recommend a good, basic HTML editor that's...
72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
8
by: kchayka | last post by:
<URL:http://www.w3.org/QA/Tips/font-size> In the "recommneded practices", I don't agree with their second bullet point, but the last 2 bullets sound like really bad advice, at least in a WWW...
0
by: SV | last post by:
Hi I work in a team which has both wide screen and normal screen monitors. We inherit user controls and forms developed in .NET, across the team. One of the problem I have noticed lately on...
7
by: lauren quantrell | last post by:
A while back I got a requirement for the client to be able to adjust the relative heights of two subforms by click-dragging the mouse and I came up with a kludge solution using a border control...
2
by: kevininstructor | last post by:
My group is in the process of replacing desktop computers with laptops for several developers for primarily .NET development. What we thought about this morning was the possibility of using an...
7
by: Peter Oliphant | last post by:
In today's market, what's a good screen resolution that I can pretty much count on as being the minimum? This is kind of a 'fuzzy' question in that I'm interested in the biggest screen...
23
by: andrew | last post by:
Hi, I have been taken to task about the length of lines in the source html of: http://www.slrn.sourceforge.org which, as I commonly do, has no line breaks at all in the source html. My...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.