• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

I have problem ( simple one )

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
PHPHZ
Asked:
PHPHZ
  • 5
  • 3
  • 3
  • +2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
what is next_post_link code?
0
 
PHPHZAuthor Commented:
<?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
 
Julian HansenCommented:
<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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
PHPHZAuthor Commented:
Still the same :S
0
 
PHPHZAuthor Commented:
When i put long title everything fine . but if i put short title i'll got the problem above !

css
0
 
PHPHZAuthor Commented:
Helppp
0
 
Ray PaseurCommented:
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
 
PHPHZAuthor Commented:
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
 
Jagadishwor DulalBraces MediaCommented:
Post your link or html code and css for that portion
0
 
Ray PaseurCommented:
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
 
Julian HansenCommented:
Post a link - it is not feasible to solve this with screen shots.
0
 
Ray PaseurCommented:
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
 
Julian HansenCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 5
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now