6 replies [Last post]
jjmu15
jjmu15's picture
User offline. Last seen 29 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 50 min 35 sec ago. Offline
rank Leader
Leader
Timezone: GMT-4
Joined: 2009-10-09
Posts: 748
Points: 838

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

CSS HTML ASP.net C# Coffee

Hugo
Hugo's picture
User offline. Last seen 4 hours 13 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 14200
Points: 1256

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
User offline. Last seen 29 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 29 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 12 hours 49 min ago. Offline
rank Guru
Guru
Timezone: GMT-7
Joined: 2005-12-14
Posts: 3336
Points: 429

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

Wrangellia, on the shores of the Salish sea.
Posting Guidelines

scept1c
scept1c's picture
User offline. Last seen 21 weeks 6 days ago. Offline
rank Regular
Regular
Timezone: GMT+3
Joined: 2010-02-01
Posts: 12
Points: 12

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