6 replies [Last post]
Ricky55
Offline
Regular
West Yorkshire
Last seen: 2 years 40 weeks ago
West Yorkshire
Timezone: GMT+1
Joined: 2008-09-26
Posts: 22
Points: 15

I am always looking at peoples code to try to improve me own.

I have noticed that a lot of people don't use the tag.

I know you can control the width of a paragraph but this doesn't give you consistent line breaks across different browsers.

This doesn't usually matter but I have a situation at the moment where I want

A paragraph of text and then..
Click here to view >

What's the best way of making sure the Click here to view is always on a new line? I've tried changing the width of the paragraph but it doesn't give me what I want in all browsers.

Thanks

CupidsToejam
CupidsToejam's picture
Offline
Guru
Waco, TX
Last seen: 2 years 12 weeks ago
Waco, TX
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

There is always the <p> tag.

There is always the

tag. You can play with margins, line-height, spans.


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

Deuce
Deuce's picture
Offline
Guru
Las Vegas, NV
Last seen: 51 weeks 6 days ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

Or put the read more in a

Or put the read more in a and give the span display:block :shrug:

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Ricky55
Offline
Regular
West Yorkshire
Last seen: 2 years 40 weeks ago
West Yorkshire
Timezone: GMT+1
Joined: 2008-09-26
Posts: 22
Points: 15

display block, thats worked

display block, thats worked great, thanks very much.

The click here was already a link so I didn't even need to use a span, just display block.

cheers

Ricky55
Offline
Regular
West Yorkshire
Last seen: 2 years 40 weeks ago
West Yorkshire
Timezone: GMT+1
Joined: 2008-09-26
Posts: 22
Points: 15

I thought block was going to

I thought block was going to do it and it does but it throws my background images out.

I have an arrow pointer gif graphic as a background image on my link set to right centre. Using block makes the the link the whole width of the paragraph above.

Is there any other way of forcing a new line.

Deuce
Deuce's picture
Offline
Guru
Las Vegas, NV
Last seen: 51 weeks 6 days ago
Las Vegas, NV
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4422
Points: 1841

Is there anyway for you to

Is there anyway for you to show us your code or better yet a link?

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Ricky55
Offline
Regular
West Yorkshire
Last seen: 2 years 40 weeks ago
West Yorkshire
Timezone: GMT+1
Joined: 2008-09-26
Posts: 22
Points: 15

Yeah sure its

Yeah sure its here

http://www.qwertypcs.co.uk/jaybe/

Its the two boxes with the tabs. This is only my 4th site using CSS, done loads with tables and flash so go steady with me.