I changed the beginning of my CV as
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\makeatletter
\renewcommand*{\makecvtitle}{%
\recomputecvlengths%
% detailed information box
\newbox{\makecvtitledetailsbox}%
\savebox{\makecvtitledetailsbox}{%
\addressfont\color{color2}%
\begin{tabular}[b]{@{}p{10cm}@{}}%
\ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet %
\ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}} %
\ifthenelse{\isundefined{\@mobile}}{}{\makenewline\mobilesymbol\@mobile} %
\ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
\end{tabular}
}%
% name and title
\newlength{\makecvtitledetailswidth}\settowidth{\makecvtitledetailswidth}{\usebox{\makecvtitledetailsbox}}%
\ifthenelse{\lengthtest{\makecvtitlenamewidth=0pt}}%
{\setlength{\makecvtitlenamewidth}{\textwidth-\makecvtitlepicturewidth
}}%
{}%
\raggedright\namestyle{\@firstname\ \@familyname}\par\medskip%
\ifthenelse{\equal{\@title}{}}{}{{\centering\titlestyle{\@title}\par}\medskip}%
\usebox{\makecvtitledetailsbox}%
\par}%
\makeatother
\name{John}{Doe}
\address{street and number}{postcode city}{country}
\email{[email protected]}
\begin{document}
\makecvtitle
\end{document}
For some reason, it does not work in WinEdt!
But the problem is that the name is not in the center.
I also would like to have "street and number" and "postcode city" in one column (on left) and email and phone number in another column (on right) next to it.
Could someone help me with this?