6 replies [Last post]
jjmu15
jjmu15's picture
User offline. Last seen 4 weeks 2 days ago. Offline
newbie
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
User offline. Last seen 2 hours 38 min ago. Offline
rank Leader
Leader
Timezone: GMT-5
Joined: 2009-10-09
Posts: 545
Points: 605

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

CSSHTMLASP.netC#Coffee

Hugo
Hugo's picture
User offline. Last seen 9 hours 33 min ago. Offline
rank Moderator
Moderator
Joined: 2004-06-06
Posts: 13682
Points: 688

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"

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

jjmu15
jjmu15's picture
User offline. Last seen 4 weeks 2 days ago. Offline
newbie
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
User offline. Last seen 4 weeks 2 days ago. Offline
newbie
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
User offline. Last seen 8 hours 57 min ago. Offline
rank Guru
Guru
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3051
Points: 129

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

From the shores of the Salish sea.

scept1c
scept1c's picture
User offline. Last seen 3 weeks 1 day ago. Offline
newbie
Timezone: GMT+2
Joined: 2010-02-01
Posts: 7
Points: 7

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.