Simple question...

Accessability is an issue because if most or all your text is image-based screen readers can't read it. The text can't be made larger either.
It's more than an issue. Under the Disability Discrimination Act commercial websites/intranets in the uk are required to make “reasonable adjustments” to ensure their websites accommodate all users regardless of ability, disability.

While I don't think anyone has been taken to court over it you should definitely be trying to reduce the amount of text locked up in images and have revelent alternative text for those you keep.
 
thanks for all the comments guys. gonna get my head round this for definite now. youve helped me loads.

randomtom i really appreciate your comments on my improvement. i am really enjoying graphics at the moment and am learning more and more all the time.

:)
 
XHTML and CSS are great, as many people have said and well worth the initial trouble. You may want to float the elements using float:left; or float:right; then position absolute or relative depending on how your page scales. All things you may find useful to look in to.

And as for dreamweaver, i used to code in it, upload with in-built ftp and check in IE/Mozilla/Safari etc seperately. However with CS3 I can rely much more on it's rendering than i used to be able to. For an X/HTML, CSS and PHP editor i don't think i would use anything else, does everything i need and more.
 
XHTML and CSS are great, as many people have said and well worth the initial trouble. You may want to float the elements using float:left; or float:right; then position absolute or relative depending on how your page scales. All things you may find useful to look in to.

And as for dreamweaver, i used to code in it, upload with in-built ftp and check in IE/Mozilla/Safari etc seperately. However with CS3 I can rely much more on it's rendering than i used to be able to. For an X/HTML, CSS and PHP editor i don't think i would use anything else, does everything i need and more.

My problem isn't with the editor side of Dreamweaver, it's with the fact it costs 300 quid. Now I know most people don't actually bother paying for it, but when there are better, free/cheaper alternatives around like Aptana/Eclipse/Zend Studio, I just can't see the sense in either spending the money or pirating the software.
 
just working ym way through a simple apge at the minute. ive got things laid out nicely and all looks fine in IE. but its ever so slight ly out of line in firefox.

also what can you do about differing resolutions? when i dropped my res to 800x600 to see what it looked like it was all over the place.

ok ive missed something major here, as when i reduce the size of the window, the objects arent moving togehter they are moving over each other :/

what am i doing wrong?
 
Are you using floats?

Floats generall automatically move with the window/resolution which can be annoying. However if you put a container around the whole site and set that to a specific width [or min-width], it should stop your floats getting squashed.

A good place to look at layouts is at www.dynamicdrive.com. They have a whole section dedicated to different types of CSS layout. Simply find one that matches yours [or one you like] and check out the code to see how they did it. I find it invaluable when I am struggling with a layout.
 
Are you using floats?

Floats generall automatically move with the window/resolution which can be annoying. However if you put a container around the whole site and set that to a specific width [or min-width], it should stop your floats getting squashed.

A good place to look at layouts is at www.dynamicdrive.com. They have a whole section dedicated to different types of CSS layout. Simply find one that matches yours [or one you like] and check out the code to see how they did it. I find it invaluable when I am struggling with a layout.

can you give me an example. i dont think im using floats
 
try something like this around the WHOLE div design

Code:
//Insert into css
.bcontainer {
    width:800px;
}

//Around whole Design
<div class="bcontainer">
</div>

You may want to put an overflow:auto; in the body.
 
Usually i have found IE to be the odd-looking browser due to its lack of compliance with W3C prior to IE7. Always look in to (google) css attributes and how well accepted they are on each browser, there is usually a happy medium which will work on both. If there isn't, and you really have a problem with it you may want to research browser detection methods which can load different style sheets dependent on rendering engine.
 
CSS layouts are a pain to start with. It is the main reason why a lot of people still use tables. However, once you have cracked it, it is plain sailing. Usually!

One of the best ways to learn is to study other people's code. If I want to do something and can't work out how, I either search for my problem, or find a page that has what I need and have a look at their CSS.

You will get there, it just takes a bit of time. You can't expect to pull a website out your hat after only a day or two of doing it.
 
CSS layouts are a pain to start with. It is the main reason why a lot of people still use tables. However, once you have cracked it, it is plain sailing. Usually!

One of the best ways to learn is to study other people's code. If I want to do something and can't work out how, I either search for my problem, or find a page that has what I need and have a look at their CSS.

You will get there, it just takes a bit of time. You can't expect to pull a website out your hat after only a day or two of doing it.

yeah but the fact its taken me 2 hours to fail to do something that can be achieved in seconds with tables makes me want to cry:(
 
Red & White, I've just made this dead quick, steal the first bit and call it 'index.html'

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/>

	<meta name="description" content=""/>

	<link rel="shortcut icon" href="img/favicon.ico" />

	<link rel="stylesheet" type="text/css" href="stylesheet.css" />

		<title>Test for Red & White</title>

</head>


<body>

	<div id="container">

		<h1>Red & White Testing Testing</h1>

		<ul id="navigation">
			<li><a href="/">Home</a></li>
			<li><a href="/>About</a></li>
			<li><a href="/">Contact</a></li>

			<li><a href="/">Links</a></li>
		</ul>

		

			<div id="content">
				<p>hello, usually i'd put in some lorem ipsum but I thought I'd help you out and write this instead</p>
				<p>From top to bottom in this html document there is:</p>
					<ul>
						<li>Doctype - needed so that browsers can do stuff</li>
						<li>all the header stuff - type, description (the bit under the title in google etc), favicon & link to stylesheet</li>
						<li>body - this is where you'd set the default padding, margin, font and background colour (no widths here)</li>
						<li>container - this is where you'd put the whole website centered, the content background colour etc.</li>
						<li>the h1 - this is the header</li>
						<li>navigation - a 'ul' is an unorderd list, just like this one, naming it means you can specifically edit it up</li>
						<li>the li elements - there are each individual list point</li>
						<li>main content and the sidebar divs are for having 2 columns</li>
					</ul>
				<p>There's also the footer but that's straight forward, I'll put comments on the CSS file too</p>
				
			</div>
				
			<div id="sidebar">
				<p>*IMAGE GOES HERE USING THIS : < img src="image destination.jpg" alt="name the image" /> job done (no spaces)</p>

			
			</div>
			
			<div id="footer"
				<p>copyright moi</p>
			</div>
	</div>
</body>
</html>
now steal this next bit and call it 'stylesheet.css'
Code:
body {
	padding: 0; /*makes sure all browsers have same padding*/
	margin: 0 auto; /*same for margin*/
	color: #222; /*close to black font colour*/
	font: 0.8em arial, Helvetica, sans-serif; /*the font, em is the size, like pt but it can be scaled up*/
	background: #ff0; /*yellow*/
}

#container {
	width: 800px;
	margin: 0 auto; /*this centres the whole website*/
	padding: 0;
	background: #fff;
}

h1 {
	padding: 10px 0; /*padding on the top and bottom but none on the sides*/
	margin: 0;
	text-align: center;
}

#navigation, #navigation a{
	margin: 0 auto; /*centered again*/
	padding: 10px 20px;
	text-align: center;
	background: #222;
	color: #fff;
}

#navigation a:hover {
	color: #ff0;
}

#navigation li {
	display: inline;
	list-style-type: none; /*no bullet points for this list*/
}

#content {
	padding: 0px 20px;
	width: 450px;
	float: left;
}

#sidebar {
	width: 275px;
	margin-left: 10px;
	float: left; /*it's still floated left but it works lol*/
	background: #ddd;
}

#footer {
	clear: both; /*so it goes below the floated things above*/
	text-align: center;
	padding: 10px 10px;
	color: #fff;
	background: #222;
}

*late removal from the google* if you want to add me on msn to talk about it, i hope it makes sense after reading www.htmldog.com and the 456berea street link i provided before, :)
 
Last edited:
Back
Top Bottom