Solved

I have problem ( simple one )

Posted on 2013-06-13
13
241 Views
Last Modified: 2013-06-18
The problem is the next article and the previews one look like that , Problem is

i want it to look like this ture
source code is  :
 ----------------------------------------------------------------------

<?php $ht_prev_next = get_option('ht_prev_next'); if ($ht_prev_next == "true") { ?>

<div class="prev-next-wrapper">

<div class="prev-post">

<?php previous_post_link('&larr; '.__('Articles précédent', 'mvp-text').' %link', '%title', TRUE); ?>

</div><!--prev-post-->

<div class="next-post">

<?php next_post_link(''.__('Article suivant', 'mvp-text').' &rarr; %link', '%title', TRUE); ?>

</div>

</div>

<?php } ?> 

Open in new window

0
Comment
Question by:PHPHZ
  • 5
  • 3
  • 3
  • +2
13 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39243805
what is next_post_link code?
0
 

Author Comment

by:PHPHZ
ID: 39243928
<?php $ht_prev_next = get_option('ht_prev_next'); if ($ht_prev_next == "true") { ?>

<div class="prev-next-wrapper">

<div class="prev-post">

<?php previous_post_link('&larr; '.__('Articles précédent', 'mvp-text').' %link', '%title', TRUE); ?>

</div><!--prev-post-->

<div class="next-post">

<?php next_post_link(''.__('Article suivant', 'mvp-text').' &rarr; %link', '%title', TRUE); ?>

</div>

</div>

<?php } ?>

Open in new window

0
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 39243930
<div class="next-post" style="text-align: right">

<?php next_post_link(''.__('Article suivant', 'mvp-text').' &rarr; %link', '%title', TRUE); ?>

</div>

Open in new window

OR add this to your style sheet
.next-post {
  text-align: right;
}

Open in new window

0
 

Author Comment

by:PHPHZ
ID: 39243946
Still the same :S
0
 

Author Comment

by:PHPHZ
ID: 39243963
When i put long title everything fine . but if i put short title i'll got the problem above !

css
0
 

Author Comment

by:PHPHZ
ID: 39244172
Helppp
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39244300
Is this in some kind of a CMS or framework?

Best way to get help with this problem is to give us enough test data that we can replicate the problem.
0
 

Author Comment

by:PHPHZ
ID: 39244319
it's Wordpress , i think the problem coming from CSS ,
Because when the title bigger everything okey
when the title is less than 10 letters i've got the problem up!
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39244411
Post your link or html code and css for that portion
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39244423
Maybe you can pad the title with &nbsp; characters.  It's a bit of a hack to do something like this, but if it works, you've got a quick answer.
0
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 39244886
Post a link - it is not feasible to solve this with screen shots.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39258180
Thanks for the points.  Going forward, consider spending a little time learning CSS.  I found that my understanding of CSS went way up when I began studying jQuery.  Just a thought, ~Ray
0
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 39258546
Yup padding with spaces is not the right solution here. Proper CSS styling is the way to go - but working with screenshots - unfortunately you are not going to get much in the way of guidance.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now