IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Web Design Code

, you can leep the design in place with code


djstarskream
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 41
Joined: 29-December 07
From: wales
Member No.: 55,448



Post #1 post Jan 1 2008, 07:46 PM
i recently posted a question to this forum about the reasons behin a webpage looking difrent inside of outher browsers. and then i found out that you use code to keep the design in place but the code you rite reads the browser and loads the page to the browsers specifications.

but if like me you prefer not to code how then can you do this,

i am aware that i would have to begin some codeing as i want to begin my own website but i dont no how i would lern this method of codeing that keeps this problem of messy web pages in difrent browsers at bay.

can annyone help
Go to the top of the page
+Quote Post
jlhaslip
no avatar
<?php $answer = googleit( $question ) ; ?>
*******************
Group: [MODERATOR]
Posts: 4,433
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:72.10



Post #2 post Jan 2 2008, 01:35 AM
Couple of quickly typed suggestions which will/should help you out.

1. Use a Doctype on all of your pages. A Valid one that does not put the Browser into Quirks Mode.
2. Code to the w3c Standards if at all possible.
3. Use a Strict Doctype on New pages.
4. Set your Margins and Padding to zero at the top of your Styles and then adjust them on a per element basis as you need to.
5. Validate your page early and often. http://validator.w3.org/
6. Avoid using Tables for Page layout. They are perfect for presenting Tabular Data.
7. Use CSS to style the page. External CSS is good.
8. Build your page in a Compliant Browser and adjust for IE using IE Conditional Comments.
9. Xhtml is not required unless you plan on using XML on the pages. (I doubt you are or will be)
10. Have fun, Be creative, Learn lots...

That should be enough for now. smile.gif
Go to the top of the page
+Quote Post
shadowx
no avatar
Look around, what do you see? Incorrect.
***********
Group: [HOSTED]
Posts: 1,128
Joined: 12-April 06
From: Essex, UK
Member No.: 21,719
myCENT:82.72



Post #3 post Jan 2 2008, 09:30 AM
In line with validating your webpage using the validator suggested always make sure you test your pages in IE firefox and if you wish Opera to see how different it looks and then to sort it out with some CSS. You'd be amazed how different things look between IE and FF and i would imagine even more so than Opera because Opera is the most standards compliant.
Go to the top of the page
+Quote Post
rvalkass
no avatar
apt-get moo
***************
Group: [MODERATOR]
Posts: 2,301
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol
myCENT:95.80



Post #4 post Jan 2 2008, 10:01 AM
QUOTE(djstarskream @ Jan 1 2008, 07:46 PM) [snapback]365703[/snapback]
i recently posted a question to this forum about the reasons behin a webpage looking difrent inside of outher browsers. and then i found out that you use code to keep the design in place but the code you rite reads the browser and loads the page to the browsers specifications.


There are a set of standards which determine which bits of HTML do what, and exactly how they should be displayed. At the moment only two browsers seem to get it right: Opera and Konqueror (and those using KHTML). The rest of the browsers out there each have their own interpretations on what the standards are, and therefore described as non-standards compliant - they basically made it up as they went along and ignored all the rules. The same code will therefore cause wildly different results in different browsers.

QUOTE(djstarskream @ Jan 1 2008, 07:46 PM) [snapback]365703[/snapback]
but if like me you prefer not to code how then can you do this,


Even people (like me) who prefer to code their sites manually can run into troubles getting everything to look right. So, it's going to be even worse if you prefer not to code. If you use a [abbreviation=WYSIWYG]What You See Is What You Get[/abbreviation] editor then the code generated will likely not work correctly in anything other than Internet Explorer, which is the worst browser of the lot for following standards. The only way to fix the code so it works in all browsers is to download all the browsers, open the page in them, and see what needs to be fixed in your code. Some problems will be common to all of them, some will require hacks to apply to only one browser, others will be even trickier to fix.

QUOTE(djstarskream @ Jan 1 2008, 07:46 PM) [snapback]365703[/snapback]
i am aware that i would have to begin some codeing as i want to begin my own website but i dont no how i would lern this method of codeing that keeps this problem of messy web pages in difrent browsers at bay.


To put it frankly, there is no way to avoid the problem of the pages looking different unless your page is incredibly basic (i.e. just some text with no layout) or you made each page one big image, which is just ridiculous. The website A List Apart goes through a lot of issues you are likely to face, and ways to get around them, along with good design practice, new ideas, etc. It's a great site to look at if you have a problem or want some inspiration. When you get on to using CSS to layout pages (as your editor should already be doing) then QuirksMode will become very useful. That site lists hundreds of common problems and the solutions to getting the code to work in every browser.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   22 Roly 1,637 5th January 2009 - 08:49 PM
Last post by: Ousk
No new   18 shadowx 831 29th December 2008 - 09:34 AM
Last post by: africa
No New Posts 7 odomike 2,264 30th April 2008 - 02:44 PM
Last post by: FeedBacker
No new   91 Xenon 7,531 31st December 2008 - 06:29 PM
Last post by: triplebtalk
No New Posts   12 bttfpromo 1,443 14th September 2004 - 08:55 PM
Last post by: Magic-Node
No New Posts 3 skter4938 472 22nd June 2006 - 03:10 PM
Last post by: fffanatics
No New Posts   11 Mr Self Destruct 1,338 26th September 2004 - 04:37 AM
Last post by: Mr Self Destruct
No New Posts   6 XtremeGamer99 717 9th February 2005 - 10:48 AM
Last post by: alexwhin
No new   24 gijoe18 3,349 24th December 2008 - 10:25 AM
Last post by: Ascaris
No New Posts   5 Tetraca 421 15th July 2006 - 11:06 PM
Last post by: Plenoptic
No New Posts   2 icss21 1,186 2nd January 2009 - 08:31 AM
Last post by: triplebtalk
No New Posts 13 Saint_Michael 1,680 3rd January 2009 - 07:50 AM
Last post by: DarkNova
No New Posts   3 jglw22 366 26th May 2008 - 02:10 PM
Last post by: Framp
No New Posts   4 Forbidden 1,126 28th March 2008 - 07:37 PM
Last post by: saran
No New Posts   7 googlue 612 15th October 2004 - 05:09 AM
Last post by: googlue


 



RSS Open Discussion Time is now: 8th January 2009 - 08:43 AM