Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Visual Design > Your Design and Layout

Reply
 
LinkBack Thread Tools
Old April 21st, 2009, 02:13 PM   #1
New Member
 

Join Date: Apr 2009
Location: England
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mackem is on a distinguished road
Need help centering page within web browser

Ok.
This is my first ever attempt at designing a website so please try and keep everything in lehmans terms.
I am using dreamweaver (just as a WYSIWYG tbh) and really need help with two things as I have absolutely no idea how to do them.

1) How do I get the web page to be centered in the browser? So that there is an equal spacing on either side of my page.
2) How do I create a hyperlink that doesn't show up without being underlined when viewing the page?

Thanks very much.

*edit* more info about the hyperlinks. They are not underlined in design view and are showing like that in internet explorer, but when viewed in firefox they have the standard hyperlink line underneath them.

Last edited by mackem; April 21st, 2009 at 02:22 PM..
mackem is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 21st, 2009, 03:44 PM   #2
Reputable Member
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: Need help centering page within web browser

There are different methods of centering your page dependent upon how you have coded your page. Div tags Table tags and CSS styles can all do the job.

CSS will also remove the underlines from your hyperlinks.

Without seeing your code it is very difficult to be specific.

GT
GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 22nd, 2009, 11:41 AM   #3
New Member
 

Join Date: Jun 2007
Location: Leeds
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 brianfall is on a distinguished road
Re: Need help centering page within web browser

The first line of code in my centered webpage is;

<table width="1002" height="594" align="center" cellpadding="0">

Maybe something similar would work for you?

Brian
brianfall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 22nd, 2009, 03:04 PM   #4
New Member
 

Join Date: Apr 2009
Location: England
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mackem is on a distinguished road
Re: Need help centering page within web browser

Ok.

Well I managed to figure out both of the things in the first post by myself but there is one more problem I am having.

How would I make my hyperlinks open in a new browser window?

Thanks.
mackem is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 23rd, 2009, 07:24 AM   #5
Reputable Member
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: Need help centering page within web browser

<a href="http://yoursite/page.html" target="_blank"></a>
GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 29th, 2009, 08:05 AM   #6
New Member
 

Join Date: Apr 2009
Location: England
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mackem is on a distinguished road
Re: Need help centering page within web browser

Quote:
Originally Posted by GalaxyTramp View Post
<a href="http://yoursite/page.html" target="_blank"></a>
Thanks.
Would I be right in thinking that to get it to display as a certain piece of text I would have:

<a href="http://yoursite/page.html" target="_blank">Display Text</a>

Also, if I wanted to have the hyperlink be running from a picture, how would I do that?

And finally, how would I change the font, colour and size of the display text with the code?

Thanks.
mackem is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 29th, 2009, 08:40 AM   #7
Reputable Member
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: Need help centering page within web browser

Quote:
Originally Posted by mackem View Post
Thanks.
Would I be right in thinking that to get it to display as a certain piece of text I would have:

<a href="http://yoursite/page.html" target="_blank">Display Text</a>
Yes thats correct

Quote:
Originally Posted by mackem View Post
Also, if I wanted to have the hyperlink be running from a picture, how would I do that?
<a href="yoursite/link.html"><img src="yourimage.jpg" alt="place alternative text for image here" /></a>


Quote:
Originally Posted by mackem View Post
And finally, how would I change the font, colour and size of the display text with the code?

Thanks.
Using a CSS style preferably. Google CSS for info about how this is done.

Hope this helps and keep reading up on HTML and CSS.

GT
GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 29th, 2009, 12:09 PM   #8
New Member
 

Join Date: Apr 2009
Location: England
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 mackem is on a distinguished road
Re: Need help centering page within web browser

Thanks very much.

I am now asking one final question for a mate who is having a go at a website in Microsoft Publisher (weird choice I know).

He is stuck on hyperlinks too and has come across a way of getting it to open pages in a new popup window by using the following HTML code:

<script language="JavaScript" type="text/javascript">
<!--
function Show(Url, Name, Features)
{
window.open(Url, Name, Features);
}
// -->

</script>
and then using:

javascript:Show('http://consoles.freebiejeebies.co.uk/18259', 'newwindow', 'menubar=yes, toolbar=yes, location=yes, directories=yes, status=yes, scrollbars=yes, resizable=yes')

for the hyperlinks themselves.
What he wants to do is get the links to open in a new tab rather than a popup window and wants to know if he can do that using his method.
Thanks.
mackem is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 30th, 2009, 12:15 PM   #9
Reputable Member
 

Join Date: Mar 2009
Location: Spain
Posts: 179
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 GalaxyTramp has a spectacular aura about GalaxyTramp has a spectacular aura about
Re: Need help centering page within web browser

Hi

To the best of my knowledge getting links to open in a new tab is dependent upon the browser settings and cannot be triggered by the webpage. Firefox does this easily, IE7, well to be honest no matter how I change the settings I have yet to make tabbed browsing work

GT
GalaxyTramp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2009, 09:58 AM   #10
New Member
 

Join Date: Jan 2009
Location: surrey
Age: 28
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 snazzy is on a distinguished road
Re: Need help centering page within web browser

I have just found a way to do this but it only seems to be working in firefox at the moment ( might be my settings, might not be, please test )

if you use the target attribute, you can use target="tab" unfortunately as some of us already know the target attribute is being dumped by w3c.

I will keep trying to create or find another way for ie, not tested in any other browser

however, it looks as if it might be catered for by w3c very soon with css3 http://www.w3.org/TR/2004/WD-css3-hy.../#dependencies

Last edited by snazzy; May 4th, 2009 at 10:02 AM..
snazzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering a Page In CSS britishchampion HTML, XHTML and CSS 5 January 3rd, 2008 12:20 PM
Centering an image on my web page Fysicus HTML, XHTML and CSS 8 September 21st, 2007 08:43 AM
Need Help Centering my index page??? 0413 Your Design and Layout 6 June 9th, 2007 02:40 AM
Centering page question bklcomputing HTML, XHTML and CSS 1 May 20th, 2005 02:49 PM
Centering layers in a page gwx03 HTML, XHTML and CSS 9 November 26th, 2003 03:55 PM


Search Engine Optimization by vBSEO 3.2.0 RC8