6 replies [Last post]
jjmu15
jjmu15's picture
Offline
newbie
England
Last seen: 11 years 24 weeks ago
England
Joined: 2010-02-05
Posts: 3
Points: 4

Hey, This is my first site and I have it 90% finished.

I have put it through the validator and it has come up 100% valid which is great. I do however have one problem and that is my right ad is not displaying to the right of the content as it should do.

I have tried everything to fix this but with no luck, can any of you guys help me?

What do you think of my site also? Please be critical as I can take it Smile

Thanks

www.velvetweb.co.uk

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 13 weeks 4 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2050
Points: 2282

jjmu15 wrote: ... I have put

jjmu15 wrote:

... I have put it through the validator and it has come up 100% valid which is great. ...

Hmm, nope: Click here. You thought I wouldn't check, huh. You silly! Tongue

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 29 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

This is bad! <h2>Latest

This is bad!

<h2>Latest Tutorials</h2>
 <hr /><br />
  <div class="dateIcon">
      <h5>Feb 4</h5>
       <br />

Run through the pages and remove all instances of the BR tag used in this fashion, and style properly it's what flipping CSS is there for Wink

Now change your DTD to 'Strict' there is no real reason that you should use 'Trans' trans is used to TRANSITION old documents towards an increased standards compliant document, new documents should NEVER use trans - and yes I'm fully aware that it used all too often, but that doesn't make it right.

Now you are in strict mode there is one further validation issue, remove target="_blank"

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

jjmu15
jjmu15's picture
Offline
newbie
England
Last seen: 11 years 24 weeks ago
England
Joined: 2010-02-05
Posts: 3
Points: 4

haha, I guess my validator

haha, I guess my validator isnt up to much cop then!

I shall change the doctype later tonight also and make the suggested improvements.

jjmu15
jjmu15's picture
Offline
newbie
England
Last seen: 11 years 24 weeks ago
England
Joined: 2010-02-05
Posts: 3
Points: 4

question

If I am to remove the target="_blank" how do I get the link to open in a new window?

sorry if this question seems stupid but I genuinely have no idea!

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 23 weeks 2 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

jjmu15 wrote: If I am to

jjmu15 wrote:

If I am to remove the target="_blank" how do I get the link to open in a new window?

I would reconsider the idea of forcing a link to open in a new window. You can't actually force that anyway, really. Opening new windows without permission is not a very friendly way to treat your visitor as it breaks the "back" button functionality of their browser, and is generally considered a detriment to usability, and a design mistake.

For these reasons this function was removed from the latest versions of html and we would be wise to accept this, in my opinion. Also, CSS is a presentational language and an action like popping up a new window is properly done by a scripting language like javascript.

Quote:

sorry if this question seems stupid but I genuinely have no idea!

If, however, after examining these reasons, you still wish to force a new window you can do it with a bit of javascript which, since I'm against opening new windows personally, I will leave you to discover for yourself. It won't be hard to find. However a user can still prevent this anyway. Best, I think, to just stop forcing annoying windows on people. But it's your life and if you wish to annoy people you can.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

scept1c
scept1c's picture
Offline
Regular
Last seen: 9 years 10 weeks ago
Joined: 2010-02-01
Posts: 16
Points: 17

I agree, different pop-ups

I agree, different pop-ups and new windows are annoying, users usually block them, so your info won't be read probably.

http://www.cms-informer.com/ PHP Content management Systems Blog and News
Articles, Information, Documentation, Blogs