Header at top of pages in WeBuilder

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
drewcoll
Posts: 6
Joined: Mon Apr 21, 2008 11:41 am

Header at top of pages in WeBuilder

Post by drewcoll »

Hi there,
Just a question I have been trying to sort out

with the header at the top of each of the new pages in WeBuilder, It's default is this:

[quote]<!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" xml:lang="en" lang="en">[/quote]


All of my pages seem to be just a bit too wide for whatever screen they are on, the content looks fine, but there is still a sideways scroll bar. If i take away even this part of that coding:

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


The bar goes away but the rest of the page seems to act a bit funny.
I want to keep the code there btu i dont want the side scrollbar when it's not needed.


Any help is much appreciated.

Thanks

Drew
llbbl
Posts: 50
Joined: Thu Mar 27, 2008 9:19 pm

Post by llbbl »

The doctype definition is an important thing to include. You don't want to remove it. They have done a good job of making it more compact.

I have two monitors here with the following resolutions:
1280x800
1280x1024

When I open a new HTML document I do not get a horizontal scrollbar for the document. I think it is just the computer you are using has a extremely small resolution.

A solution would be to get a better computer with a monitor that can support higher resolutions as well as a video card in the computer that is capable of displaying the resolutions that the monitor supports.

Another solution would be to turn Word Wrap on in the Options menu of WeBuilder.
Cary
Posts: 82
Joined: Mon May 28, 2007 10:41 pm

Re: Header at top of pages in WeBuilder

Post by Cary »

drewcoll wrote:All of my pages seem to be just a bit too wide for whatever screen they are on, the content looks fine, but there is still a sideways scroll bar.
Do you mean the page is too wide when looking at the code or when viewing the page layout? As mentioned, this doctype code should not be reduced. It allows for greater cross-compatibility of your page in a variety of browsers.
drewcoll wrote:If i take away even this part of that coding...The bar goes away but the rest of the page seems to act a bit funny.
This can happen, if you are talking about the page layout, as things render differently without a valid doctype in quirks mode than they do with a complete, full doctype in standards mode. In this case you just need to redesign your page so it's narrower.

However, if the layout's width seems fine and you don't know what's causing the scrollbar, then you'll need to post a url we can look at.
drewcoll
Posts: 6
Joined: Mon Apr 21, 2008 11:41 am

Post by drewcoll »

Hi there!
Thanks heaps for the replies.
My computers resolution is fine, up to date and its a 15" laptop, the video card is all up to date etc. Unless theres something i should donload off the net for it.

Anyway what I mean is that in "preview" mode and even when i open the html page itself, It seems to be just a tad bit too wide.
All the content is fine and can be seen so i dont understand why it is wide.
I am using a CSS layout with 3 coloumns and a header, so the middle coloumn is liquid in order to fit almost any screen display, but never-the-less it is still wide.


If that makes any more sense....
I will try and upload it soon and post the link to the site to show you. But if you understand what i mean.

Regards
Drew
drewcoll
Posts: 6
Joined: Mon Apr 21, 2008 11:41 am

Post by drewcoll »

AH!! i think i may have hit it the problem on the head!
The only problem now is im not sure how to fix it. But i can figure that one out myself, if not I might just post my coding here. It just has something to do with the Width of the header, when i set it to 100% it seems to go slightly off page.
But ill sor that out.


Now one other question.

Does it matter what DOCOTYPE my html code is?

I mean where it says

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


does it matter that its 1.0? I remember when i first set up webuilder it asked me what type and i accidently put 1.0 ..... i do like the 4.1, how do i change the default, and does it matter in the long run?


Regards

Drew
Cary
Posts: 82
Joined: Mon May 28, 2007 10:41 pm

Post by Cary »

You should check out the HTML vs XHTML FAQ on Sitepoint.
drewcoll
Posts: 6
Joined: Mon Apr 21, 2008 11:41 am

Post by drewcoll »

ok so i had a look but it was all too much.
By the looks of it html 4.0 is most common and every browser supports this correct?

What do people reccomend?

How do i change the default on the webuilder to make it html 4.0?


Regards
llbbl
Posts: 50
Joined: Thu Mar 27, 2008 9:19 pm

Post by llbbl »

XHTML Transitional is the best.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

You can set the default by going to 'Options' -> 'Preferences'. In the 'General' section, set the 'Default template'.

Image

The templates are in {webuilder directory}\templates\html
Last edited by chrisjlocke on Wed Apr 23, 2008 10:10 am, edited 1 time in total.
Cary
Posts: 82
Joined: Mon May 28, 2007 10:41 pm

Post by Cary »

I use 4.01 strict. As the faq says, it's best to use strict rather than transitional as far as future-proofing goes, and I don't see any reason to use xhtml if it's not going to be sent to the browser as xhtml.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

llbbl wrote:XHTML Transitional is the best.
Care to explain why?
llbbl
Posts: 50
Joined: Thu Mar 27, 2008 9:19 pm

Post by llbbl »

chrisjlocke wrote:
llbbl wrote:XHTML Transitional is the best.
Care to explain why?
It is the best of both worlds. If you have ever spent hours upon hours trying to get someone else's style sheet or html to validate XHTML strict you will understand why. :)

XHTML strict is for people who like pain ... masochists?

That being said, it is impressive feat (waste of time) when a site validates Strict. :P
Cary
Posts: 82
Joined: Mon May 28, 2007 10:41 pm

Post by Cary »

llbbl wrote:If you have ever spent hours upon hours trying to get someone else's style sheet or html to validate XHTML strict you will understand why. :)...That being said, it is impressive feat (waste of time) when a site validates Strict. :P
That may be if you're reworking someone else's bad code, but creating valid code when starting from scratch is hard not to do.
llbbl
Posts: 50
Joined: Thu Mar 27, 2008 9:19 pm

Post by llbbl »

I suppose so. Strict is still more of a pain in the ass.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Can't see why its a pain. Surely it makes sense to create properly formatted code?
Post Reply